Pouria Posted February 11, 2007 Report Share Posted February 11, 2007 Thanks. Quote Link to comment Share on other sites More sharing options...
-pops- Posted February 11, 2007 Report Share Posted February 11, 2007 I've searched around but I'm unable to find and easy/safe way of doing this.What I do is run Ccleaner just before I shut my computer down. I realise it is not automatic but, I do like to keep control of things like deleting files. Quote Link to comment Share on other sites More sharing options...
Chris Posted February 11, 2007 Report Share Posted February 11, 2007 If you're using XP Pro/XP MCE...I'll assume you mean the %TEMP% folder.RMDIR /S /Q %TEMP%The above will remove the %TEMP% folder and everything in it. However the %TEMP% folder will be recreated when windows starts. To make it kick in at shutdown you need to setup a logoff script.Start, Run, Type: gpedit.msc and click OK.User Configuration > Windows Settings > Scripts (Logon/Logoff)Double click: LogoffUnzip the attached file.Click: Show files... and drag del_temp_folder.bat into the folder.Then click Add..., Browse and double click del_temp_folder.batClick OK.Restart your PC and you will find the %TEMP% folder is there but will only [if anything] have a few items in it.Also note that items in the %TEMP% folder are either needed or not. Upon shutdown I wouldn't know if this folder is needed and if it is then running the script might cause havoc so before you do the above make a backup just to be sure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.