How do files in ...\AppData\Local\Temp get deleted?

Page 2 of 2 FirstFirst 12

  1. Posts : 10,485
    W7 Pro SP1 64bit
       #11

    UsernameIssues said:
    ... apps that are designed to delete some or all temp files (e.g. CCleaner) will delete temp file created by other apps....
    JohnHa said:
    ...I tried CCleaner, which I have, but the as delivered configuration it does not clear the ...\AppData\Local\Temp\ folder. I realise that other cleaning utilities might clear the folder.
    The "as delivered configuration" should clear the ...\AppData\Local\Temp\ folder...
    ...but only if the files are older than 24hrs old.

    How do files in ...\AppData\Local\Temp get deleted?-cc1.png

    How do files in ...\AppData\Local\Temp get deleted?-cc2.png



    How do files in ...\AppData\Local\Temp get deleted?-cc3.png


    If I clear the option highlighted above, the files shown below will be deleted:

    How do files in ...\AppData\Local\Temp get deleted?-cc4.png


    You should tell forum members to avoid clearing the folder via CCleaner.
      My Computer


  2. Posts : 16
    Windows 7 Home 64 bit
    Thread Starter
       #12

    Thank you for that correction. I had cleaned it manually myself before starting testing, so as not to confuse myself, so when I ran the CCleaner test, everything was less than 24 hours old. I have just placed an old file in it and CCleaner does indeed delete it.
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #13

    No problem.

    Let's hope that you can help others not lose their data in that temp folder
      My Computer


  4. Posts : 2
    Win 10
       #14

    Found it! It's Norton.


    @JohnHa: Did you ever find the solution?
    I have exactly the same problem, and in my case it is caused by Norton Antivirus.

    At irregular times, the temporary files of an application I develop get removed while it is running, and data are lost. Today it happened again, I once again searched the web for help and found this page, which notes that running Disk Cleanup will clear AppData temp folders. This alerted me to the fact that Norton AntiVirus had notified running in the background to improve system performance...

    So I again started my application, opened the temp folder to watch, started Norton manually, ran Performance > File Cleanup and ... zap! Gone were the temp files.

    This also explains why most of my users did not report the problem: fortunately most do not use Norton. Better antivirus software probably looks at the timestamps before removing temp files.

    My solution will be to set work files read-only each time they are closed. (The application removes the temp files itself when ready.)
      My Computer


  5. Posts : 7,351
    Windows 7 HP 64
       #15

    My not be a good idea. To set work files read-only each time they are closed my prevent them to be updated. And Norton may also delete read-only and even system and hidden.
    If the problem is Norton, disable the function on it.
      My Computers


  6. Posts : 2
    Win 10
       #16

    My application will set read-write permission when needed. Norton does not remove read-only files (I tested this). Also note that disabling the function in Norton is not the solution: I would have to tell all users of my application to do that.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 20:38.
Find Us