本帖最后由 Duvet 于 2010-8-31 21:44 编辑
試試看可不可以 ^^#include <Constants.au3>
Local $file = StringSplit("autorun.inf|sxs.exe|oso.exe|auto.exe|sysauto.exe|setup.exe|hsomklg.exe|gamesetup.exe|pagefile.pif|ravmone.exe|ravmon.exe","|")
Local $var = DriveGetDrive("all")
If Not @error Then
Local $i,$j
Local $foo = Run(@ComSpec,@SystemDir,@SW_HIDE,$STDIN_CHILD)
For $i=1 To $var[0]
If StringRegExp(DriveGetType($var[$i]),"Removable|Fixed") Then
For $j=1 To $file[0]
StdinWrite($foo,"del /a /f /q "&$var[$i]&""&$file[$j]&@CRLF)
Next
EndIf
Next
StdinWrite($foo," /c chkntfs /t:5"&@CRLF)
StdinWrite($foo)
EndIf
Exit
|