您的位置:首页 > 其它

用批处理集中给windows系统打补丁

2009-06-25 13:34 162 查看
同事是做电脑维护的,经常要装机打补丁,虽然补丁都下载了,但一个个安装比较费劲,给他做了个批处理一次性再全部安装。代码如下:

@echo off

@echo " ----------------------------"

@echo " copy the bat file to the folde where the patch be in"

@echo " run the bat file ,it will run all the patch in current folde"

@echo " author : gnolux"

@echo " email : fangkailove@yeah.net"

@echo " ----------------------------"

del p.txt

dir *.exe /b >> p.txt

@echo on

@echo "Please wait......."

FOR /F %%F IN (p.txt) DO start /wait %%F /norestart /quiet

在我的资源里可以直接下载 run_patch.bat
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: