@echo off
Setlocal enabledelayedexpansion
reg query HKU\S-1-5-20>nul || echo;CreateObject^("Shell.Application"^).ShellExecute "%~f0", "", "", "runas", 1 > "%temp%\getadmin.vbs" && cscript //b "%temp%\getadmin.vbs" && exit /b & del "%temp%\getadmin.vbs" /f /q>nul 2>nul
pushd "%CD%"&& CD /D "%~dp0"
taskkill /im explorer.exe /f
rd C:\Users\Administrator\AppData\Local\Temp /s /q
mklink /d C:\Users\Administrator\AppData\Local\Temp x:\temp
rd C:\Users\Administrator\AppData\Local\Microsoft\Windows\Explorer /s /q
mklink /d C:\Users\Administrator\AppData\Local\Microsoft\Windows\Explorer X:\windows\Explorer
rd "C:\Users\Administrator\AppData\Local\Microsoft\Windows\Temporary Internet Files" /s /q
mklink /d "C:\Users\Administrator\AppData\Local\Microsoft\Windows\Temporary Internet Files" "X:\Temp\Temporary Internet Files"
rd "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Audio" /s /q
mklink /d "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Audio" X:\temp
rd "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Image" /s /q
mklink /d "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Image" x:\temp
rd "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Video" /s /q
mklink /d "C:\Users\Administrator\Documents\Tencent Files\我的qq号\Video" x:\temp
rd "C:\Users\Administrator\Documents\Tencent Files\我的qq号\FileRecv\MobileFile" /s /q
mklink /d "C:\Users\Administrator\Documents\Tencent Files\我的qq号\FileRecv\MobileFile" X:\临时文件
rd C:\Windows\Logs /s /q
mklink /d C:\Windows\Logs x:\logs
del C:\Windows\PFRO.log /s
mklink C:\Windows\PFRO.log C:\Windows\Logs\PFRO.log
rd C:\Windows\Prefetch /s /q
mklink /d C:\Windows\Prefetch x:\Windows\Prefetch
del C:\Windows\setuperr.log /s
mklink C:\Windows\setuperr.log C:\windows\Logs\setuperr.log
del C:\Windows\setupact.log /s
mklink C:\Windows\setupact.log C:\windows\Logs\setupact.log
del "C:\Windows\inf\setupapi.app.log" /s
mklink "C:\Windows\inf\setupapi.app.log" C:\windows\Logs\setupapi.app.log
del "C:\Windows\inf\setupapi.dev.log" /s
mklink "C:\Windows\inf\setupapi.dev.log" C:\windows\Logs\setupapi.dev.log
del "C:\Windows\inf\setupapi.offline.log" /s
mklink "C:\Windows\inf\setupapi.offline.log" C:\windows\Logs\setupapi.offline.log
rd C:\Windows\temp /s /q
mklink /d C:\Windows\temp x:\temp
rd C:\Windows\ServiceProfiles\LocalService\AppData\Local /s /q
mklink /d C:\Windows\ServiceProfiles\LocalService\AppData\Local X:\windows\Local
rd C:\Windows\System32\winevt\Logs /s /q
mklink /d C:\Windows\System32\winevt\Logs X:\Logs
pause>nul
2012andyle113 发表于 2024-11-16 08:26
你把预读文件都重定向有点过分了啊
9zhmke 发表于 2024-11-16 21:58
你还是把整个系统放内存盘算了
欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |