 
- 帖子
- 1115
- 积分
- 1632
- 技术
- 116
- 捐助
- 0
- 注册时间
- 2010-4-30
|
我是网吧网管
批处理我常用的
@echo off
cls
rd /q/s C:\WINDOWS\Temp||(
echo
echo
echo.
echo 请退出 pubwin2009 并重启
echo.
pause>nul
exit
)
md C:\WINDOWS\Temp
cd /d C:\"Program Files"\HintSoft\PubwinClient
dir /a/b | find /i "0" && (
echo y|cacls Ad /p everyone:F>nul
echo y|cacls Logs /p everyone:F>nul
echo y|cacls Patch /p everyone:F>nul
rd /q/s Ad||(
echo
echo
echo.
echo 请退出 pubwin2009 并重启
echo.
pause>nul
exit
)
rd /q/s Logs
rd /q/s Patch
\\server\客户机\pub2009.exe
)
echo.
cd /d c:\windows\system32
if not exist update.zip (
cd.>update.zip
echo y|cacls update.zip /p everyone:R>nul
)
for /f "delims=" %%i in ('dir /a:d/b/o:n') do (
if not exist c:\windows\system32\"%%i"\update.zip (
echo 新建 %%i\update.zip
cd /d c:\windows\system32\"%%i"
cd.>update.zip
echo y|cacls update.zip /p everyone:R>nul
)
)
echo.
cd /d c:\windows\system32
for /f "delims=" %%i in ('dir /a/s/b update.zip') do (
if %%~zi NEQ 0 (
echo 覆盖 %%~dpiupdate.zip
cd /d "%%~dpi"
del /q/a/f update.zip||echo 覆盖 %%~dpiupdate.zip 失败
cd.>update.zip
echo y|cacls update.zip /p everyone:R>nul
)
)
echo.
\\server\客户机\maxdos8开机还原.exe
regedit /s \\server\客户机\禁用待机.reg
regedit /s \\server\客户机\pub4.reg
\\server\客户机\Pubclt.exe
echo.
cd /d c:\
echo on
del /q/a/f c:\windows\*.log
del /q/a/f c:\windows\Memory.dmp
del /q/a/f C:\"Program Files"\GameMenu\dltemp\*.*
del /q/a/f c:\*.log
del /q/a/f c:\*.txt
del /q/a/f c:\*.bat
del /q/a/s/f C:\WINDOWS\Help\*.*
rd /q/s C:\WINDOWS\Bak
rd /q/s C:\WINDOWS\Logs
rd /q/s C:\WINDOWS\LastGood.Tmp
rd /q/s C:\WINDOWS\system32\config\systemprofile
@echo off
echo.
echo.
echo.
echo.
echo. 临时文件清理完毕,按回车键开始安装还原
pause>nul
cd /d C:\"Program Files"\GameMenu\Bin
DriversInstall.exe unvidorestore reboot install cde 123456 |
|