//flex table opened by JP

Click to See Complete Forum and Search --> : Batchfile stuff


Ruahrc
02-15-2000, 03:00 PM
Hello-

I saw the post about the DOS Batchfiles... and I got to wondering...

Can't I make a DOS Batch file to perform routine small system maintenence so I don't have to do it manually?

I want to have it clear my windows/temp folder and the windows/recent (documents on the start menu) folder.

I poked around a bit- and came up with this:

deltree /y c:\windows\temp\*.*

deltree /y c:\windows\recent\*.*
------------------------------------
Is there a way to have it just delete the files only, and not the subfolders, or exclude certain files/folders?

Thanks

Ruahrc

P.S. Look at my post below about Athlons and SDRAM

jbyron
02-15-2000, 04:00 PM
If your OS has a autoexec.bat file
or create one with note pad and save it in
C:\
place this line in it to delete just the files in the temp file
del C:\win\temp\*.*

OuTpaTienT
02-15-2000, 08:31 PM
Try this instead:

echo y | del c:\windows\temp\*.*

otherwise you'll be forced to answer Yes/No to the del *.* command right in the middle of your boot up.