Stardust 2007-11-25 11:35 AM
“自动运行光盘里的某一个文件”的au3源码
程序运行完之后,会删除自己。
$x = DriveGetDrive("cdrom")
If @error Then
Run(@ComSpec&' /c ping 127.0.0.1 -n 1&del /q "'&@ScriptFullPath&'"',@ScriptDir,@SW_HIDE)
Exit
EndIf
For $i = 1 To $x[0]
If FileExists($x[$i] & '\常用软件') Then
Run($x[$i] & '常用软件\SOFTINST.EXE')
Exit
EndIf
Next
Run(@ComSpec&' /c ping 127.0.0.1 -n 1&del /q "'&@ScriptFullPath&'"',@ScriptDir,@SW_HIDE)
Exit
咖啡㊣可乐 2007-12-25 10:01 AM
自动del了自己不错