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

 

@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​​