VISTA %temp% question (1 Viewer)

jeremypaule

Registered User.
Local time
Today, 10:55
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:

Minkey

Registered User.
Local time
Today, 14:55
Joined
Jul 7, 2004
Messages
661
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
 

jeremypaule

Registered User.
Local time
Today, 10:55
Joined
Aug 21, 2006
Messages
135
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:

jeremypaule

Registered User.
Local time
Today, 10:55
Joined
Aug 21, 2006
Messages
135
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 *.*
 

Minkey

Registered User.
Local time
Today, 14:55
Joined
Jul 7, 2004
Messages
661
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
 

jeremypaule

Registered User.
Local time
Today, 10:55
Joined
Aug 21, 2006
Messages
135
lol thanks, sorry about that. please let me know if you figure it out!!
 

FoFa

Registered User.
Local time
Today, 09:55
Joined
Jan 29, 2003
Messages
3,672
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.
 

jeremypaule

Registered User.
Local time
Today, 10:55
Joined
Aug 21, 2006
Messages
135
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.
 

kidrobot

Registered User.
Local time
Today, 10:55
Joined
Apr 16, 2007
Messages
409
wow I never knew that so many files are saved to this folder...
 

Minkey

Registered User.
Local time
Today, 14:55
Joined
Jul 7, 2004
Messages
661
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.
 

kidrobot

Registered User.
Local time
Today, 10:55
Joined
Apr 16, 2007
Messages
409
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

Top Bottom