autoit基础 IniWrite 创建ini文件

网友投稿 720 2022-09-13

autoit基础 IniWrite 创建ini文件

autoit基础 IniWrite 创建ini文件

OS : Windows 10 Version 21H1       AutoIt : v3.3.16.0        blog : 师万物  typesetting : Markdown

script

#comments-start IniWrite ( "filename", "section", "key", "value" ) Writes a value to a standard format .ini file. #comments-end ;write IniWrite(@DesktopDir & "\my.ini","section", "key1", "value1") IniWrite(@DesktopDir & "\my.ini","section", "key2", "value2") IniWrite(@DesktopDir & "\my.ini","section", "key3", "value3") IniWrite(@DesktopDir & "\my.ini","section1", "key1", "value1") IniWrite(@DesktopDir & "\my.ini","section1", "key2", "value2") IniWrite(@DesktopDir & "\my.ini","section1", "key3", "value3") ;change IniWrite(@DesktopDir & "\my.ini","section1", "key3", "value3_new")

Go

>"D:\Develop\AutoIt3\SciTE\..\AutoIt3.exe" /ErrorStdOut "E:\autoit\demo.au3" >Exit code: 0

my.ini

[section] key1=value1 key2=value2 key3=value3 [section1] key1=value1 key2=value2 key3=value3_new

学习资源

autoit autoit-docs IT天空 msdn 51CTO社区

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:autoit基础 MsgBox helloworld
下一篇:泛型Generic(泛型编程)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~