@echo on@echo 正在清理垃圾文件,请稍候......del *.psd/sdel *.manifest *.exp *.ilk *.pdb *.txt *json *.libdel TestHttpDll.execd Bin/dlldel *.exp *.ilk *.pdb *.lib@echo 清理完毕!!!pause
这个方案暂时不行
@echo offecho 获取Administrator权限cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nulif %errorlevel%==0 goto Adminif exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"echo Set RequestUAC = CreateObject^("Shell.Application"^)>"%temp%\getadmin.vbs"echo RequestUAC.ShellExecute "%~s0","","","runas",1 >>"%temp%\getadmin.vbs"echo WScript.Quit >>"%temp%\getadmin.vbs""%temp%\getadmin.vbs" /fif exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"exit:Adminecho 成功取得Administrator权限@echo 正在清理垃圾文件,请稍候......for /r "." %%a in (*.bmp *.xui *.json) do (find "副" %%aif "!errorlevel!"=="0" (echo %%adel %%a) )@echo 清理完毕!!!pause