Free PC Performance Scan

Member Panel



Join the PC Help Forum Team

Join PC Help Forum on Facebook

Join the PCHF Distributed Computing Teams

Try the NEW PC Help Forum Dark style

Link to PCHF from other parts of the Internet
PC Forum PC Help Forum » Operating Systems » Windows XP/2000 » [Fixed] Temp File scripts

Windows XP/2000 - Temp File scripts posted in the Operating Systems forums; Is there a script to delete all the temp files (like temporary internet files and files in the Temp folder) from every user profile on a windows xp computer? I ...

JOIN US NOW to remove these Ads

Post New Thread  Reply
  #1  
Old 07-28-2008
Bronze Member
 
Join Date: Jul 2008
Posts: 12
PC Experience: Some Experience
emjay - See this Members User comments on their Profile page
Default Temp File scripts

Is there a script to delete all the temp files (like temporary internet files and files in the Temp folder) from every user profile on a windows xp computer? I know you could schedule the disk clean up utility to run at a certain time etc. But i just wanted a script I could use to clean up user profiles (temp files etc.)

Thanks


  #2  
Old 07-28-2008
madmonkey's Avatar
Site Manager
My PC
 
Join Date: Oct 2006
Location: South Wales
Posts: 6,540
PC Experience: PC Basket Ball Head!
madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page
Default Re: Temp File scripts

Hey emjay, welcome to PCHF by the way.

There are some neat applications that can set this up for you, such as TweakXP. You'll pay a few pennies for this software, but it's worth it's weight in gold the features and tweaks this little utility comes with.

As a free alternative, if it's a script you would like, then it's a script you shall have jay. Here we go.

- Copy and paste the following lines into notepad (Start, Run, type in notepad)

@echo off
path c:\windows

cd "%userprofile%\local settings\temp"
deltree /y *.*

cd "%userprofile%\local settings\temporary internet files"
deltree /y *.*

cd %userprofile%\cookies
deltree /y *.*

- Save it in c:\documents and settings\all users\start menu\programs\startup
- Save it as clearTemp.bat
- In Explorer, go to Tools, Folder Options, followed by the View tab. Untick Hide extentions for known file types.
- After it has saved, have a look under your start menu, under startup and make sure that the file you just saved ends with a .bat extention. Notepad has the tendancy to add a .txt to the end of the file.

- Finally Download deltree from here: http://www.uv.tietgen.dk/staff/mlha/...ft/DELTREE.EXE (and save it to your c:\windows folder.


This will delete temp files on logon for the current user profile. You can schedule deletions. And if you want deletions to take effect on other user profiles, then change the %userprofile% section of the script to the profile folder you would like to work with, for example: c:\documents and settings\Bilbo Baggins


__________________


Last edited by madmonkey; 07-29-2008 at 12:02 AM.
  #3  
Old 07-29-2008
Bronze Member
 
Join Date: Jul 2008
Posts: 12
PC Experience: Some Experience
emjay - See this Members User comments on their Profile page
Default Re: Temp File scripts

Oh yeah! your the BEST!!!!!!!

Thanks much


  #4  
Old 07-29-2008
Hengis's Avatar
PCHF Head Honcho
My PC
 
Join Date: Jan 2004
Location: Southern England
Posts: 11,589
PC Experience: Always learning
Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page
Send a message via Skype™ to Hengis
Default Re: Temp File scripts

Nice MadMonkey

Marked as [Fixed]


__________________

Pre-Work
/ System File Checker / Help promote PCHF! / What's inside your PC? / Did we help you? If we did, please consider A Donation

Reply
Satellite TV on your PC - over 3000 Channels! Click Here!

Bookmarks

Tags
file , scripts , temp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Files in thumbdrive not showing up! pink_bee Hard Drives 16 06-24-2008 03:48 PM
Malaware inside? mkmk [Fixed] Hijackthis! Logs 3 06-04-2008 10:36 AM
File Extensions List Hengis Windows Tutorials 0 02-09-2008 03:27 PM
[Resolved] HELP Plz!!! Add/Remove Programs CrazyKate [Fixed] Hijackthis! Logs 20 12-21-2006 02:34 PM
[Answered] Virus Infected Windows 2000 Server anteaus [Fixed] Hijackthis! Logs 6 08-09-2005 01:20 AM

All times are GMT +1. The time now is 09:48 PM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top