SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Computer Learning

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: PMS Witch who wrote (9704)9/17/2001 9:57:29 PM
From: Investor2  Read Replies (2) of 110645
 
RE: "I use the following .BAT file to clean out junk on my system regularly. Note: The long file names means I cannot run this .BAT file in DOS safe mode, and the work it performs cannot be done in a DOS window. (I remove cookies too.)

REM Delete unwanted files and replace their root folders
DELTREE /Y C:\WINDOWS\TEMP
MD C:\WINDOWS\TEMP
DELTREE /Y C:\WINDOWS\COOKIES
MD C:\WINDOWS\COOKIES
DELTREE /Y "C:\WINDOWS\Temporary Internet Files"
MD "C:\WINDOWS\Temporary Internet Files"
ERASE C:\WIN386.SWP
REM
"

OK, it's been a while since I've used batch files. Infact, I think it was before I got Windows. .... I tried the above and couldn't get it to work. Here's what I did:

1. Rebooted into DOS mode.
2. Typed in the command, "EDIT". (Is that program that came up still called the DOS editor?)
3. Typed this exact text:

REM Delete unwanted files and replace their root folders
DELTREE /Y C:\WINDOWS\TEMP
MD C:\WINDOWS\TEMP
DELTREE /Y "C:\WINDOWS\Temporary Internet Files"
MD "C:\WINDOWS\Temporary Internet Files"
REM

4. Saved the file as "PMSWITCH.BAT" in the C:\Windows directory.
5. While still in the DOS mode, went into the C:\Windows directory and typed, "PMSWITCH.BAT".
6. The batch file seemed to run.
7. While still in the DOS Mode, and the C:Windows directory, I typed "WIN" expecting to get back to Windows.
8. I got an error message saying something like "The program is still running, can't go into windows." (Actually, that's not at all what the message said, but I think that was the idea.)
9. I typed the command "EXIT" and, immediately, Windows booted up.
10. I checked the C:\WINDOWS\Temporary Internet Files directory, and it still showed as having 80+ meg, although I still couldn't see anything in it.
11. I noticed that I had created a C:\WINDOWS\Temporar directory. Hmmm.

Any help would be appreciated.

Thanks,

I2
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext