• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Autoexec.bat windows/temp file removal command

BigDog2k

Member
A while back someone posted a script that you can put into your autoexec.bat file to clean out your windows temp directory when you boot up. anyone know what that is

Thanx
Shawn
 
Hawkeye just had a minor typo and IsOs's command WILL work IF the path to deltree is set beforehand, or if, instead, you type out the complete path to the command. Here's how I do it:

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

This assumes you've installed Windows to the default c:\windows folder.

You can, as IsOs did, leave out the "\*.*" because Windows will automatically recreate the c:\windows\temp folder at startup if it's missing. That's just a matter of choice. The difference between IsOs's version and mine is that mine empties out all files and subfolders of the c:\windows\temp folder, while his deletes the Temp folder itself and all it's files/subfolders.

I also use the line:

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

because I have a c:\temp folder in addition to the c:\windows\temp folder.
 
Back
Top