IniDelete


从标准格式的 .ini 文件中删除键值。

IniDelete, Filename, Section [, Key]

参数

Filename .ini 文件名,如果不指定绝对路径,则假设它在 %A_WorkingDir% 目录下。
Section .ini 文件中的段名,即包含在方括号里的标题词组(在这个参数里不需要写方括号)。
Key .ini 文件中的键名。 如果省略,整个 Section 将被删除。

ErrorLevel

如果有问题,ErrorLevel 被设为1 ,否则为0。然而,如果脚本是 .aut (AutoIt v2) 类型的,ErrorLevel 不会改变(兼容性的原因)。

注意

一个标准的 ini 文件看起来像这样:

[SectionName]
Key=Value

相关命令

IniRead, IniWrite, RegDelete

示例

IniDelete, C:\Temp\myfile.ini, section2, key
翻译:惊幻   修正:天堂之门 menk33@163.com 2008年8月24日