$x = DriveGetDrive("cdrom") If @error Then MsgBox(0, "", "没有找到光盘驱动器,没有吗?") Exit EndIf For $i = 1 To $x[0] If FileExists($x[$i] & '常用软件') Then Run($x[$i] & '常用软件\soft.EXE') Exit EndIf Next $rb=MsgBox(5+32,"友情提示","未找到软件光盘,请插入您的软件光盘!",15)
举报
SCCDSoft() $rb = MsgBox(5 + 32, "友情提示", "未找到软件光盘,请插入您的软件光盘!", 15) While 1 If $rb = 4 Then SCCDSoft() $rb = MsgBox(5 + 32, "友情提示", "未找到软件光盘,请插入您的软件光盘!", 15) Else ExitLoop EndIf WEnd Func SCCDSoft() $x = DriveGetDrive("cdrom") If @error Then MsgBox(0, "", "没有找到光盘驱动器,没有吗?") Exit Else For $i = 1 To $x[0] If FileExists($x[$i] & '\常用软件') Then Run($x[$i] & '\常用软件\soft.EXE') Exit EndIf Next EndIf Return EndFunc
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 11:27 , Processed in 0.121899 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.