本帖最后由 ndyzx 于 2012-2-1 17:02 编辑
回复 2# 半芯竹
行我全部发出来望指教,但用你的方法不能编译。FileInstall("IsoCmd.exe", @TempDir & "\IsoCmd.exe", 1)
FileInstall("ISODrv64.sys", @TempDir & "\ISODrv64.sys", 1)
FileInstall("ISODrive.sys", @TempDir & "\ISODrive.sys", 1)
$g_szVersion = "test"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)
Dim $i, $Drive
For $i = 67 To 90
$Drive = Chr($i)
If FileExists($Drive & ":" & "mysoft" & "" & "mysoft.iso") Then
RunWait(@TempDir & '\IsoCmd.exe -i', "", @SW_HIDE)
RunWait(@TempDir & '\IsoCmd.exe -number 1', "", @SW_HIDE)
RunWait(@TempDir & '\IsoCmd.exe -change 1 x:', "", @SW_HIDE)
RunWait(@TempDir & '\isocmd -Mount X: ' & $Drive & ':\mysoft\mysoft.iso', "", @SW_HIDE)
Sleep(1000)
RunWait("x:\CDRUN.EXE", "x:", "", @SW_HIDE)
RunWait(@TempDir & '\isocmd -Eject x:', "", @SW_HIDE)
RunWait(@TempDir & '\isocmd -Remove', "", @SW_HIDE)
ExitLoop
EndIf
Next
FileDelete(@TempDir & "\IsoCmd.exe")
FileDelete(@TempDir & "\ISODrv64.sys")
FileDelete(@TempDir & "\ISODrive.sys")
|