New York Hotels | Loans | Problem Mortgage | New York Hotels | New York Hotel
autoexec.bat [Archive] - PCMech Forums

PDA

View Full Version : autoexec.bat


realtor388
11-07-2000, 12:36 AM
I went to notepad then autoexec.bat and put in del C:WindowsTemp*.tmp>nul
This was supposed to empty my temp files on start up but it does not. Any help would be appreciated. Thanks

RJ
11-07-2000, 06:51 AM
Hi realtor388,

The following line will clear your temp directory

del C:\Windows\Temp\*.*

Well, now I'm not sure if the computer asks you to confirm deleting. I think it does, because long, long time ago I also coded my cleartmp lines, and they are:

DELTREE /Y C:\WINDOWS\TEMP
MD C:\WINDOWS\TEMP

This should do that :)

RJ

dam286
11-11-2000, 12:52 PM
For Windows 95, I would use this line in C:\AUTOEXEC.BAT:

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

The pipe ( | ) sends a y to the del command, to confirm that you want to delete all the files in c:\windows\temp.

dam286
11-17-2000, 07:54 PM
RJ, I like your code better.
I'd never seen subfolders in the temp folder before, last week I looked around and found some.
I'll still use my code with DOS 3.3, though. :)