Dim $varCD = DriveGetDrive("CDROM")
If Not @error Then
For $i = 1 To $varCD[0]
If StringInStr(DriveGetLabel($varCD[$i]), "沐雨xp") <> 0 Then ;如果搜寻到光驱卷标中包含“沐雨xp”
TrayTip ( "提示", "正在复制文件,请稍候……,请勿进行其他操作!", 30, 2)
DirCopy($varCD[$i] & "\files", "d:\soft\files" , 1 )
DirCopy($varCD[$i] & "\SORT", "d:\soft\SORT" , 1 )
FileCopy ($varCD[$i] & "\沐雨庭园软件选择安装器.EXE", "d:\soft" , 9 )
FileCopy ($varCD[$i] & "\沐雨庭园软件选择安装器.INI", "d:\soft" , 9 )
FileSetAttrib("d:\soft\sort","+H")
FileSetAttrib("d:\soft\沐雨庭园软件选择安装器.INI","+H")
TrayTip ( "提示", "软件已经成功保存在D盘soft文件夹中。", 30, 2)
Sleep (2000)
EndIf
Next
MsgBox(0,0,"$i="&$i);这里加个中断,自己看
;If Not FileExists($varCD[$i] & "\沐雨庭园软件选择安装器.EXE") Then
;MsgBox (4096,"光驱中未发现“沐雨庭园”系列安装盘","如需保存软件到D盘备用,请插入“沐雨庭园”安装光盘后重试”(虚拟光驱加载Iso或者真实光驱均可)!")
;EndIf
EndIf
|