Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tech Tips & Tricks
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Clean Then TEMP Folder At Startup

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
devil_himself's Avatar
Distinguished Member with 4,921 posts.
 
Join Date: Apr 2007
Location: India
Experience: Advanced
22-Apr-2007, 08:25 AM #1
Clean Then TEMP Folder At Startup
U can use a simple BAT file to clean out your Windows Temp folder every time you reboot your computer by opening Notepad and entering these lines into it:

rd %temp% /s /q

md %temp%

Save the file to your Desktop as 'cleantemp.bat'. Now click on the Start button and go to Programs then right-click on Startup. Select 'Open' to open the Startup folder then drag and drop the 'cleantemp.bat' file into this folder.

Now every time you reboot your computer, Windows will automatically delete all the files in your Temp folder. You should not, however, use this file to clean out your Temp folder at shutdown as this could cause problems with a newly installed program that requires you to reboot your computer.
WhitPhil's Avatar
Computer Specs
Trusted Advisor - Gone but never forgotten with 9,280 posts.
 
Join Date: Oct 2000
Location: Whitby, Ontario
22-Apr-2007, 09:59 AM #2
A question:

Installs are completed at boot time not at shutdown.

So, why the caveat about not removing files at shutdown?

Removing them on bootup will cause the same problems for a newly installed app that requires a reboot.








'
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:06 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.