举报
$file = @HomeDrive & '\boot.ini' MsgBox(0,0,@HomeDrive) If StringInStr(FileRead($file), 'abc.abc') Then MsgBox(0,0,'found the string') FileSetAttrib($file, '-RSH') $str = StringRegExpReplace(FileRead($file), 'timeout\s*=\s*\d+', 'timeout=5') $tmp_file = FileOpen($file, 2) FileWrite($file, $str) FileClose($tmp_file) FileSetAttrib($file, '+RSH') ShellExecute($file)
FileSetAttrib("C:\boot.ini", "-RSH") IniWrite("C:\boot.ini", "boot loader", "timeout", "4" ) IniWrite("C:\boot.ini", "operating systems", "c:\grldr", '"' & "boot grub" & '"') FileSetAttrib( "C:\boot.INI", "+RSH")
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-30 01:38 , Processed in 0.077270 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.