中国DOS联盟论坛

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-09-25 00:23
47,813 topics / 349,918 posts / today 1 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » How to use DOS and Notepad to make an automatic thing to clear differences?
Printable Version  1,325 / 5
Floor1 chenweigao123 Posted 2006-10-01 06:20
新手上路 Posts 1 Credits 5 From 深圳
For example, how to clear the files in C:\Documents and Settings\Administrator\Templates
Floor2 namejm Posted 2006-10-01 08:46
荣誉版主 Posts 1,737 Credits 5,226 From 成都
You can use the method of deleting the entire directory and then recreating this directory:


  In addition, post another batch script for deleting system junk files circulating online, I have slightly modified it, you can think about it:
Floor3 lxmxn Posted 2006-10-01 09:21
版主 Posts 4,938 Credits 11,386

rem del /a /f /q "%userprofile%\cookies\*.*"
rem del /a /f /q "%userprofile%\recent\*.*"
rem del /a /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
rem del /a /f /s /q "%userprofile%\Local Settings\Temp\*.*"
rem del /a /f /s /q "%userprofile%\recent\*.*"


Why does the moderator add a rem in front? Adding this makes the code behind it useless, right?

But I admire the moderator's enthusiasm and earnestness, and I've bookmarked it...
Floor4 6622186 Posted 2007-04-01 14:04
高级用户 Posts 411 Credits 894
Indeed as the third floor said
Floor5 flyinspace Posted 2007-04-02 00:00
银牌会员 Posts 517 Credits 1,206
Originally posted by namejm at 2006-9-30 07:46 PM:
  You can use the method of deleting the entire directory and then recreating this directory:
Floor6 tommy725 Posted 2007-04-02 07:47
初级用户 Posts 14 Credits 36
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023