![]() |
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-06 06:04 |
47,812 topics / 349,914 posts / today 0 new / 48,268 members |
| DOS启动盘 & LOGO技术 (启动盘室) » How to create a batch file? Clear the temporary file TEMP every time it starts? |
| Printable Version 1,858 / 3 |
| Floor1 feichuan | Posted 2003-04-09 00:00 |
| 初级用户 Posts 3 Credits 116 | |
|
How to create a batch file? To clear the temporary file TEMP every time it starts? It would be great if the temporary files under the system could be deleted every time it starts!
|
|
| Floor2 MYS | Posted 2003-04-09 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
Open attachment
Easy, take XDEL above as an example Write autoexec.bat like this @echo off smartdrv 8192 xdel /n /s c:\*.tmp xdel /n /s c:\~*.* Loading SMARTDRV makes it faster, /N parameter is no need to answer, /S is to handle files in subdirectories together. |
|
| Floor3 Wengier | Posted 2003-04-09 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
You can use PC - CACHE to make it automatically exit the disk buffer after deletion, for example:
PC - CACHE /SIZEXT:8192 /MINI ... PC - CACHE /U |
|
| Floor4 xu0077 | Posted 2003-04-12 00:00 |
| 初级用户 Posts 3 Credits 109 | |
|
I added in autoexec.bat under win98:
@echo off deltree /y c:\windows\temp\*.* >nul deltree /y c:\windows\recent\*.* >nul In this way, it automatically deletes useless temporary files and shortcuts in the temp directory and recent (shortcuts in Documents in the Start menu) every time you start up, including temporary subdirectories in the temp directory, (so del cannot be used). I have been using it for ~3-4 years, and the effect is very good. It should be noted that the /y parameter after deltree must not be forgotten, otherwise when 98 starts up to the black screen, you will only see the cursor flashing and it will not continue (because it is waiting for you to confirm Y or N). But I wonder if there is such a simple method under me, 2k or xp? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |