VISTA %temp% question

jeremypaule

Registered User.
Local time
Yesterday, 19:17
Joined
Aug 21, 2006
Messages
135
is there a way to disable files being saved to temp so I don't have to delete them every other day.
 
Last edited:
is there a way to disable files being saved to temp so I don't have to delete them every other day.

That's Windows for you ;) - do you mean from IE or your other web browser if so you can do it through the option to delete temp items when you close them.

If you mean system/app temp files that will always happen and you don't have an option in Windows to disable that. One thing you can do is write a batch file to delete them and then put it in your startup folder (or run it as a scheduled task) though be aware that some temp files will be in use and therfore can not be deleted.

This should work:

Code:
cd C:\foldername
echo y | del *.*

Paste into notepad and save as filename.bat

If your folder name is in a sub folder - C:\foldername\subfolder
 
I use Mozilla and the 'Clear Browser data' doesn't delete the %temp% files for some odd reason(even though the option is checked in which things are deleted). I was thinking of making a batch file to do it, I'll probably do that.
 
Last edited:
Am I doing something wrong? I have the following saved in a notepad named deltemp.bat and the file just deletes itself when run

cd C:\Users\Jeremy\AppData\Local\Temp
echo y | del *.*
 
Odd - I've got a dual boot system with XP and Vista (from XP) and just tried it to the same folder on Vista and managed to delete a load of desktop icons from XP's desktop :eek: even though they are on a different partition which is VERY odd :confused:

I'll need to look into this - maybe it's something to do with Vista and dos commands, so a disclaimer - don't use this if your using Vista :p (It's gonna take me a while to restore my desktop now!! - especially as this method bypasses the recycle bin).

So don't use for now apologies I should have tried it out in Vista first - I'll post back hopefully with a solution (hopefully)

PS It does work in XP standalone
 
lol thanks, sorry about that. please let me know if you figure it out!!
 
I don't think cd C:\Users\Jeremy\AppData\Local\Temp will work
I think you have to:
C:
cd \Users\Jeremy\AppData\Local\Temp

I don't think you can combine the drive and the path in one.
 
I don't think cd C:\Users\Jeremy\AppData\Local\Temp will work
I think you have to:
C:
cd \Users\Jeremy\AppData\Local\Temp

I don't think you can combine the drive and the path in one.


Thanks for the help, but that didn't work either.
 
wow I never knew that so many files are saved to this folder...
 
I don't think cd C:\Users\Jeremy\AppData\Local\Temp will work
I think you have to:
C:
cd \Users\Jeremy\AppData\Local\Temp

I don't think you can combine the drive and the path in one.

You can use it that way the exact syntax for the command is as follows:

CHDIR [drive:][path]
CHDIR[..]
CD [drive:][path]
CD[..]

Unfortunatly I haven't been able to try this out on Vista yet but hang in I'll get it in the end (hopefully :p )

kidrobot said:
wow I never knew that so many files are saved to this folder...

That's why I reinstall Windows on a regular basis - the amount of junk Windows (and to be fair other apps) fills your PC up with is incredible.
 
Please let me know when you figure this out!! I'd like to reformat on a regular basis but I have so much saved onto my hard drive, I need to partition it or buy an external to get my files in order.
 

Users who are viewing this thread

Back
Top Bottom