![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-09 14:52 |
47,811 topics / 349,896 posts / today 1 new / 48,254 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] Batch file doesn't work????? |
| Printable Version 766 / 2 |
| Floor1 clilinuxlove | Posted 2008-08-27 03:57 |
| 新手上路 Posts 11 Credits 15 From 广东 | |
|
echo Checking the locations of Cookies, History, and other directories (current user)...
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>%temp%\cleantmp.txt reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>%temp%\cleantmp.txt echo Cleaning Cookies, IE cache, History, etc. (current user)... for /f "tokens=3*" %%a in (%temp%\cleantmp.txt) do ( for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i">nul 2>&1 del /a /f /s /q "%%a %%b\*.*">nul 2>&1 ) Why does the above code never clean IE completely, or simply not work at all? |
|
| Floor2 HAT | Posted 2008-08-27 10:00 |
| 版主 Posts 5,017 Credits 9,023 | |
|
%temp%\cleantmp.txt
This path has spaces, right? You need to add double quotes: Also, before the code has been tested successfully, I suggest removing >nul 2>&1 |
|
| Floor3 clilinuxlove | Posted 2008-08-27 20:02 |
| 新手上路 Posts 11 Credits 15 From 广东 | |
|
Thanks
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |