找回密码
 加入
搜索
查看: 1971|回复: 1

安装搜索系统补丁问题

[复制链接]
发表于 2008-5-31 14:03:13 | 显示全部楼层 |阅读模式
;安装系统补丁
    Local $search = FileFindFirstFile(@HomeDrive & "\install\hotfix\KB*.exe")
 While 1
    Local $file = FileFindNextFile($search) 
    If @error Then ExitLoop
   RunWait(@HomeDrive & "\install\hotfix\$file /norestart /q /n /o")
 WEnd
 FileClose($search); 关闭搜索句柄


主要是搜索下hotfix的系统补丁并且自动安装,MsgBox(4096,"搜索结果", $file )可以正确显示出要安装的文件,但是RunWait(@HomeDrive & "\install\hotfix\$file /norestart /q /n /o")却没办法安装文件,请帮我看下代码

[ 本帖最后由 ronin 于 2008-5-31 15:15 编辑 ]
 楼主| 发表于 2008-5-31 15:14:52 | 显示全部楼层
RunWait(@HomeDrive & "installhotfix" & $File & " /norestart /q /n /o")

解决问题,刚学autoit一天
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-3-29 22:18 , Processed in 0.078778 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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