找回密码
 加入
搜索
查看: 1348|回复: 0

RUN能设定运行时间咩?

[复制链接]
发表于 2008-8-7 14:34:11 | 显示全部楼层 |阅读模式
我想用AU3调用“D:\检查”里的全部EXE。脚本如下:

$FilePath = "D:\检查"
$searchFile = FileFindFirstFile($FilePath & "\*.exe")
If $searchFile = -1 Then
    MsgBox(0, "错误", "无任何文件或文件夹与指定的搜索字符串匹配")
    Exit
EndIf

While 1
    $file = FileFindNextFile($searchFile)
    If @error Then ExitLoop
    RunWait($FilePath & "\" & $file,$FilePath)
WEnd

FileClose($searchFile)

在运行过程中有一些exe因配置不全而无法顺利润结束,请问一下能不能加点什么使用每个exe最多运行5分钟?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-4 07:26 , Processed in 0.071404 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表