Jump to content

Delete files in Windows Temp Folder


Jamin4u

Recommended Posts

Should I keep the box checked for "Only delete files in Windows Temp Folder older than 24 hours"?

 

I understand that...

 

Selected by default. This prevents CCleaner from deleting temporary files that may be currently in use.

 

Isn't it true that this is a place that Malware likes to hide?

 

Any thoughts?

Link to comment
Share on other sites

  • Moderators

I have to agree that Malware hides there most often. However, I guess you're fine to have that checked and then, if you suspect malware, uncheck it. Strangely (and I maybe wrong) I think it looks at creation date not modification date.

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

Support at https://support.ccleaner.com/s/?language=en_US

Pro users file a PRIORITY SUPPORT via email support@ccleaner.com

Link to comment
Share on other sites

I think it looks at creation date not modification date.

Thats a good question Nergal, and I wonder if you're correct?

 

Why does CCleaner have the option "Only delete files in Windows Temp Folder older than 24 hours"?

 

If a file was in use, wouldn't it be locked by Windows and not deleted?

Link to comment
Share on other sites

If a file was in use, wouldn't it be locked by Windows and not deleted?

 

No - it depends upon how it is used.

 

I can double click junk.txt and notepad launches and I can read the file,

whilst notepad is displaying the file I can focus back to Windows Explorer and delete the file and it is gone,

even though Notepad still shows what WAS there.

 

I can launch CMD.EXE and issue the command

ping -w 40 -n 100 127.0.0.1 >> junk.txt

and whilst ping is running I can tell Windows Explorer to delete the file and am told

"Cannot delete junk: It is being used by another person or program"

 

Conclusions :-

The O.S. will not allow files to be deleted when in use by SOME programs,

and the 24 hour precaution is redundant for them,

 

The O.S. WILL allow those same files to be deleted whilst in use by other programs,

in which case the 24 hour precaution is appropriate

 

Alan

Link to comment
Share on other sites

Thanks Alan,

 

So, the "Only delete files in Windows Temp Folder older than 24 hours" is in place for the instances that Windows will delete a file even if its in use.

 

The box is there for the times you need to empty the folder for what ever reason.

 

I'm going to leave the box checked just in case a program is using a file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.