Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: temp folder: do not files deleted when exit program

03 Oct 2011   #1

Win 7 x64 Enterprise
 
 
temp folder: do not files deleted when exit program

Hi all:

I have a bit of an unusual issue. I am trying to prevent Win 7 from deleting files from the temp folder (C:\Users\<NAME>\AppData\Local\Temp) when I close a program (in my case Firefox). I believe it is the OS, and not the program or my AV, which is deleting the files, though if folks think otherwise please let me know. Does anyone have suggestions on options to change to prevent files from being expunged from my \temp directory?



Here are the specifics:
I am trying to prevent Firefox from deleting files which I download using the Download Manager using the "open with" (rather than "save as") option.

These files remain in my folder, C:\Users\<NAME>\AppData\Local\Temp until after I close Firefox at which point they are deleted. Note: I am sure it is Windows which is deleting the files since:
* I have disabled my antivirus and related programs (Malwarebytes real time protection)
* I can see the file disappear from the \Temp folder a few seconds after Firefox is closed down
* when I terminate the Firefox process via the task manager the file deletion does not occur


Some other comments:
* I do not believe this is influenced by the Tools>Options>Privacy settings in Firefox, but I have set it to "Use Custom Settings for History" and unchecked "Clear History when Firefox Closes"
* I have experimented with various settings in Firefox's about:config (privacy.clearOnShutdown.* options are all set to false)
* files downloaded during previous sessions are not removed from \Temp when the browser is closed (so if I terminate Firefox via task manager it will not be removed when I exit again later)


My set-up:
OS: Win 7 Enterprise x64
Browser: Firefox 3.6.21
AV: Sophos

My System SpecsSystem Spec
.

03 Oct 2011   #2

Windows 7 Professional SP1 32-bit
 
 

Actually, I think everything points toward Firefox deleting the temp files, not Windows. In any case this behavior is by design, since Firefox downloads your files in order to open them with something and you're not just saving them.
So my question is...why don't you just save the files instead of using "open with"? If for some reason you can't or don't want to, you could simply move the desired files out of your temp folder before closing Firefox...
My System SpecsSystem Spec
03 Oct 2011   #3

Win 7 x64 Enterprise
 
 

Hi Corazon:

I often download big files which I am not sure I want to keep, so I use "open with" option to save a step (I would have to open the file after downloading). It is nice to be able revisit the file later without either moving it or redownloading, but FF typically deletes it first.

I wish there was a way to customize FF to prevent this from happening, though folks over at the Mozilla forum suggest this is not possible.
My System SpecsSystem Spec
.


03 Oct 2011   #4

Windows 7 Professional SP1 32-bit
 
 

Intriguing I might've found something to help you out actually. In Firefox, enter about:config in the address bar to gain access to all of FF's options and settings. In the list, browse for a setting called privacy.clearOnShutdown.downloads - this is set by default to true and you can set it to false simply by doubleclicking it. Just to be on the safe side, close and restart Firefox afterward and see if that does the trick...I have a feeling it's exactly what you want.
My System SpecsSystem Spec
03 Oct 2011   #5

Win 7 x64 Enterprise
 
 

Hi Corazon:

Thanks for checking on this! Unfortunately I had already sent privacy.clearOnShutdown.downloads to false (as well as all other privacy.clearOnShutdown.* options) and my \temp folder is still being cleared. I will post over at the Mozilla forum to see if this is unexpected.
My System SpecsSystem Spec
04 Oct 2011   #6

Windows 7 Professional SP1 32-bit
 
 

Ah, bummer. Hope you find an answer on the Mozilla forums. Good luck
My System SpecsSystem Spec
11 Oct 2011   #7

Win 7 x64 Enterprise
 
 

No luck over at the mozilla forum. oh well, maybe some future poster will have a solution this one.
My System SpecsSystem Spec
Reply

 temp folder: do not files deleted when exit program





Thread Tools



Similar help and support threads for2: temp folder: do not files deleted when exit program
Thread Forum
Unusual Files in Temp Folder General Discussion
Can't see jpgs in Temp Internet Files Folder Browsers & Mail
Temp Internet files folder is 118GB full, but no files??? Browsers & Mail
Win7-deleted Windows Live folder from Program Files(x86) How 2 Replace Software
by mistake i have deleted my temp files General Discussion
Deleted 64 bit program files folder General Discussion
Could Temp folder contents be deleted? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:50 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33