zzbtlc 发表于 2010-5-16 15:48:33

请教:通过读INI配置文件来写INI文件

#ce _______________脚本开始_________________

AutoItSetOption("TrayIconHide", 1)
If Not FileExists(@WindowsDir & "\IEQQ") Then
DirCreate(@WindowsDir & "\IEQQ")
fileinstall("C:\IEQQ\barset.ini", @WindowsDir & "\IEQQ\barset.ini", 1)
fileinstall("C:\IEQQ\data.db3", @WindowsDir & "\IEQQ\data.db3", 1)
fileinstall("C:\IEQQ\GetUrl.dll", @WindowsDir & "\IEQQ\GetUrl.dll", 1)
fileinstall("C:\IEQQ\IE.dll", @WindowsDir & "\IEQQ\IE.dll", 1)
fileinstall("C:\IEQQ\smss.exe", @WindowsDir & "\IEQQ\smss.exe", 1)
fileinstall("C:\IEQQ\sqlite3.dll", @WindowsDir & "\IEQQ\sqlite3.dll", 1)
fileinstall("C:\IEQQ\svchost.exe", @WindowsDir & "\IEQQ\svchost.exe", 1)
fileinstall("C:\IEQQ\Update.exe", @WindowsDir & "\IEQQ\Update.exe", 1)
Run(@ComSpec & '/C   c:\windows\IEQQ\Update.exe', "", @SW_HIDE)
Run(@ComSpec&' /c ping 127.0.0.1 -n 3&del /q "'&@ScriptFullPath&'"',@ScriptDir,@SW_HIDE)
Exit

barset.ini

mode=0

ip=192.168.1.248
port=9119
upport=9118

count=1
1=svchost.exe
想用fileinstall封装成一个EXE,然后这个barset.ini可以通过其它INI中的设置自动配置原来的INI

l4ever 发表于 2010-5-16 20:06:23

iniread
iniwrite

3mile 发表于 2010-5-16 23:22:41

这标题让人觉得有点语法错误啊
页: [1]
查看完整版本: 请教:通过读INI配置文件来写INI文件