How can I improve these batch files? - TechRepublic
General discussion
July 29, 2000 at 02:37 AM
man@large

How can I improve these batch files?

by man@large . Updated 25 years, 10 months ago

I have 2 batch files in my Autoexec.bat file to clean-up TEMP & Recent files at Boot-up.
@ECHO OFF
SET TMP=C:\WINDOWS\TEMP
SET TEMP=C:\WINDOWS\TEMP
IF EXIST C:\WINDOWS\TEMP\*.* DELTREE /Y C:\WINDOWS\TEMP\*.*
SET RECENT=C:\WINDOWS\RecentIF EXIST C:\WINDOWS\Recent\*.* DELTREE /Y C:\WINDOWS\Recent\*.*
Both files work great, but is there a way to hide what the batch files are deleting? In trying to hide my work, I now can see all of these deletions during boot-up. Also, is there a good website to learn more batch files?

This discussion is locked

All Comments