Help - Search - Members
Full Version: How to PROTECT certain Directory/Files from Deletion?
Piriform Community Forums > Piriform Software > CCleaner Discussion
axelrose
I want to PROTECT certain FOLDERS and FILES from being deleted when running CCLEANER.

I went to OPTIONS but when I selected a folder it had a warning telling me that ALL the files in the folder would be deleted?

So How do I protect certain folders/files from being deleted?

I want to be able to keep the LOGS certain programs make.

thanks,
pwillener
Is that a subfolder of your temp folder, or is it an application log that is automatically cleaned? If so, disable that application from being cleaned in the Applications tab.
Vyrticl
Yes you can, but you need to make a change to the default behavior of Windows, disable Simple File Sharing. To do this go to "Start > Control Panel > Folder Options > View". Scroll down to the very bottom and uncheck "Use simple file sharing".

Now right-click the folder/file you want to modify and select "Properties". Click on the "Security" tab and click the "Advanced" button. Select the name of the user you're using and click "Edit...". Check Deny for the Delete permission. If it's a folder also check Deny for the Delete Subfolders and Files permission.

That should make it so whenever CCleaner is run on that user it won't delete the files/folders you modified. Make sure you do this for every user that has access to the files/folders and might run CCleaner. Also keep in mind if you ever want to delete the modified files/folders you will need to revert the changes.
axelrose
I am sharing a folder over my LAN with another computer.
Will what you said disable that shared folder?

thanks

QUOTE(Vyrticl @ Mar 11 2006, 10:44 PM) [snapback]32550[/snapback]

Yes you can, but you need to make a change to the default behavior of Windows, disable Simple File Sharing. To do this go to "Start > Control Panel > Folder Options > View". Scroll down to the very bottom and uncheck "Use simple file sharing".

Now right-click the folder/file you want to modify and select "Properties". Click on the "Security" tab and click the "Advanced" button. Select the name of the user you're using and click "Edit...". Check Deny for the Delete permission. If it's a folder also check Deny for the Delete Subfolders and Files permission.

That should make it so whenever CCleaner is run on that user it won't delete the files/folders you modified. Make sure you do this for every user that has access to the files/folders and might run CCleaner. Also keep in mind if you ever want to delete the modified files/folders you will need to revert the changes.

Vyrticl
QUOTE(axelrose @ Mar 12 2006, 09:47 AM) [snapback]32604[/snapback]

I am sharing a folder over my LAN with another computer.
Will what you said disable that shared folder?

thanks


No, you can still share files and folders over your LAN but you will have more options and control over the share. The simple file sharing just makes it easier to share a file/folder, but it gives you hardly any control at all.
axelrose
QUOTE(Vyrticl @ Mar 11 2006, 10:44 PM) [snapback]32550[/snapback]

Yes you can, but you need to make a change to the default behavior of Windows, disable Simple File Sharing. To do this go to "Start > Control Panel > Folder Options > View". Scroll down to the very bottom and uncheck "Use simple file sharing".


I Tried what you said. The "Use simple fire sharing" option is no where in the list.

Maybe I didn't mention: I am using winXP SP1

Any other ideas???


thanks,

DjLizard
That option only exists in XP Professional, and it's a bad idea anyway, since the programs that created the logs wouldn't be able to write to them anymore, just as CCleaner wouldn't be able to delete them, so that would only create new problems.

What is the name of the program?
Vyrticl
QUOTE(DjLizard @ Mar 14 2006, 08:33 PM) [snapback]32794[/snapback]

That option only exists in XP Professional, and it's a bad idea anyway, since the programs that created the logs wouldn't be able to write to them anymore, just as CCleaner wouldn't be able to delete them, so that would only create new problems.

What is the name of the program?


I only told him to uncheck the Delete permission, the program would still be able to modify and append to the log. The only functionality he would be losing is the ability to delete the file/folder until he modifies the permission.
axelrose
QUOTE(DjLizard @ Mar 14 2006, 10:33 PM) [snapback]32794[/snapback]

That option only exists in XP Professional, and it's a bad idea anyway, since the programs that created the logs wouldn't be able to write to them anymore, just as CCleaner wouldn't be able to delete them, so that would only create new problems.

What is the name of the program?


zonealarm pro

DjLizard
QUOTE(Vyrticl @ Mar 15 2006, 02:03 AM) [snapback]32805[/snapback]

I only told him to uncheck the Delete permission, the program would still be able to modify and append to the log. The only functionality he would be losing is the ability to delete the file/folder until he modifies the permission.

Oh, I missed that part. laugh.gif

Anyway, since it can't be done (easily) in XP Home, why not just uncheck ZoneAlarm in CCleaner's Applications tab? tongue.gif
axelrose
QUOTE(DjLizard @ Mar 15 2006, 09:29 AM) [snapback]32849[/snapback]

Oh, I missed that part. laugh.gif

Anyway, since it can't be done (easily) in XP Home, why not just uncheck ZoneAlarm in CCleaner's Applications tab? tongue.gif


Zone Alarm is not an OPTION to "un-check" in the CCLEANER's application tabs.

If it's there, then it's invisable or hidden in some way?

Please, anyone have an idea on this problem?

thanks,
pwillener
QUOTE(axelrose @ Mar 16 2006, 12:37 PM) [snapback]32915[/snapback]

Zone Alarm is not an OPTION to "un-check" in the CCLEANER's application tabs.

If it's there, then it's invisable or hidden in some way?

Please, anyone have an idea on this problem?

thanks,

Hmm, funny - I have that option. What version of Ccleaner are you using?
[attachmentid=545]
axelrose
QUOTE(pwillener @ Mar 15 2006, 11:14 PM) [snapback]32918[/snapback]

Hmm, funny - I have that option. What version of Ccleaner are you using?
[attachmentid=545]



1.27.260

Is there a way/method of editing the config files so that it ADDS the ZoneAlarm option?

I believe I am using the latest and greatest version.

Should I downgrade to one which offers me that Log file Protection Option?


thanks,
krit86lr
QUOTE(axelrose @ Mar 16 2006, 01:02 AM) [snapback]32932[/snapback]

1.27.260

Is there a way/method of editing the config files so that it ADDS the ZoneAlarm option?

I believe I am using the latest and greatest version.

Should I downgrade to one which offers me that Log file Protection Option?
thanks,

You should already have it. Here is the reference from winapp.ini from CCleaner v1.27.
[ZoneAlarm (Logs)]
LangSecRef=3022
Detect=HKLM\SOFTWARE\Zone Labs\ZoneAlarm
Default=True
FileKey1=%windir%\Internet Logs|ZALog*.*

Did you edit your winapp.ini at all? Did you download winapp2.ini? Have you done anything with either of these files?
pwillener
QUOTE(axelrose @ Mar 16 2006, 04:02 PM) [snapback]32932[/snapback]

I believe I am using the latest and greatest version.

Should I downgrade to one which offers me that Log file Protection Option?

I use the latest version 6.1.737.000; no need to downgrade to an earlier version.
krit86lr
QUOTE(pwillener @ Mar 16 2006, 01:53 AM) [snapback]32943[/snapback]

I use the latest version 6.1.737.000; no need to downgrade to an earlier version.

The latest CCleaner version. wink.gif
axelrose
QUOTE(krit86lr @ Mar 16 2006, 02:11 AM) [snapback]32935[/snapback]

You should already have it. Here is the reference from winapp.ini from CCleaner v1.27.
[ZoneAlarm (Logs)]
LangSecRef=3022
Detect=HKLM\SOFTWARE\Zone Labs\ZoneAlarm
Default=True
FileKey1=%windir%\Internet Logs|ZALog*.*

Did you edit your winapp.ini at all? Did you download winapp2.ini? Have you done anything with either of these files?


OMG Thank You so much. I opened that file and inserted those lines in several different places until I appeared under the Internet list of apps on the CCLEANER. NOW it denies deletions of the logs which is what I want.

Is there a way to add entries for individual files/folders NOT already in the winapp.ini file?
I looked at the file and the entries seem straighforward, almost like an old autoexec.bat from the old skool days.

Anyone?
krit86lr
QUOTE(axelrose @ Mar 16 2006, 08:42 AM) [snapback]32965[/snapback]

OMG Thank You so much. I opened that file and inserted those lines in several different places until I appeared under the Internet list of apps on the CCLEANER. NOW it denies deletions of the logs which is what I want.

Is there a way to add entries for individual files/folders NOT already in the winapp.ini file?
I looked at the file and the entries seem straighforward, almost like an old autoexec.bat from the old skool days.

Anyone?

Actually yes. That is what the winapp2.ini is for. Here is the link with instructions.
winapp2.ini
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.