There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > General Technology > Tech Tips & Tricks >
Clean Then TEMP Folder At Startup

Reply  
Thread Tools
devil_himself's Avatar
Distinguished Member with 4,922 posts.
 
Join Date: Apr 2007
Location: India
Experience: Advanced
22-Apr-2007, 09: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, 10: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.








'
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:08 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.