topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 9:08 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: idea - a simple prog to protect files/folder from deletion  (Read 19114 times)

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
idea - a simple prog to protect files/folder from deletion
« on: December 30, 2005, 09:37 PM »
i just discovered that one of my music folder (3GB) has been deleted without my knowledge, i dont remember i delete that folder, it could have been deleted by me by accidental when i half awake or some other music player progs deleted it.

there are many shareware out there that can protect or hide a folder or files with password, but the users have to enter the password each time, this is too troublesome, it would be great if there is a simple prog that deny delete to a folder or files, this will prevent accidental deletion.

thank you.

If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #1 on: December 30, 2005, 09:48 PM »
Well, a simple program which keeps the file 'open' would be the easy way. I'll chuck some code together :)

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #2 on: December 30, 2005, 10:51 PM »
Aaaaand, done!

http://bluescreenofd...o.uk/Programs/Locker

Each line of the config file should contain a file to lock, click Re-Lock and you're done. It locks all files when it loads too, it doesn't need to be installed so you can run the exe and config file from anywhere. It's only 10KB big, and shouldn't have any problems loading huge files... Have fun :D

EDIT: Yay, it now supports directories, example:

DIR:C:\My music
C:\important file.txt

Would lock all files in C:\My music\ and C:\important file.txt

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:
« Last Edit: December 30, 2005, 11:15 PM by PhilKC »

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #3 on: December 30, 2005, 11:11 PM »
thank you very much Phil, but i got this:
http://img312.imageshack.us/img312/3541/gadwinscreenshot0038eu.png
idea - a simple prog to protect files/folder from deletion


and can it add a folder with all the files in the subfolders? i have more than 5000 wma/mp3, not possible to add one by one.

thx again.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #4 on: December 30, 2005, 11:22 PM »
Right, that error means you don't have the latest .NET framework:

http://www.microsoft...5&DisplayLang=en

Oh, and your comment about the directories... it can add directories now :)

Two ways of adding a DIR:

DIR:C:\

Will add all files in C:\

DIRS:C:\

Will add all files in C:\ and all subdirectories (DO NOT ADD \WINDOWS\ TO THE LIST)

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:
« Last Edit: December 30, 2005, 11:52 PM by PhilKC »

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #5 on: December 31, 2005, 12:03 AM »
that's awesome, thanks again Phil, i will install .NET and try again.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #6 on: December 31, 2005, 12:06 AM »
that's awesome, thanks again Phil, i will install .NET and try again.

I really should start versioning my programs, anyway, redownload (I've just uploaded it), i'll start at... 1.0.0.0

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

techwiznoob48

  • Participant
  • Joined in 2009
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #7 on: April 10, 2009, 11:27 PM »
Aaaaand, done!

http://bluescreenofd...o.uk/Programs/Locker

Each line of the config file should contain a file to lock, click Re-Lock and you're done. It locks all files when it loads too, it doesn't need to be installed so you can run the exe and config file from anywhere. It's only 10KB big, and shouldn't have any problems loading huge files... Have fun :D

EDIT: Yay, it now supports directories, example:

DIR:C:\My music
C:\important file.txt

Would lock all files in C:\My music\ and C:\important file.txt

PhilKC
can i ask for this please?  the link no longer works...please please....??

Coeluh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
  • Family Guy ^^
    • View Profile
    • Jeroen Coelen
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #8 on: April 11, 2009, 10:04 AM »
Awesome idea!

erikts

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 224
    • View Profile
    • Donate to Member

smbdy234

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 4
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #10 on: April 21, 2009, 10:06 AM »
Is there anyone out there who has this software and can either post it, or send it in an email?  I want this one... Please....  The link no longer works...  Thanks...

steeladept

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,061
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #11 on: April 23, 2009, 03:41 AM »
Maybe I am missing something, but can't this be accomplished by just editing the permissions to prevent deletion?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #12 on: April 23, 2009, 04:56 AM »
Maybe I am missing something, but can't this be accomplished by just editing the permissions to prevent deletion?
Beat me to it :) - simply set NTFS permissions and you're good to go. Notice that you'll have to find the "advanced permissions" to see the Delete token.
- carpe noctem

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #13 on: August 18, 2009, 07:41 AM »
Forget it if the author doesn't want to fix the link then he is not interested in donating his piece of cake

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,190
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #14 on: August 18, 2009, 07:51 AM »
Maybe I am missing something, but can't this be accomplished by just editing the permissions to prevent deletion?
Beat me to it :) - simply set NTFS permissions and you're good to go. Notice that you'll have to find the "advanced permissions" to see the Delete token.

That doesn't stop it if you're running as the person who set the delete bit, does it?  I mean, manually deleting, sure... but if some errant program deletes it, it could also unset the bit, right?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #15 on: August 18, 2009, 09:32 AM »
wraith808: the delete permission is different from the read-only file attribute; there aren't a lot of programs that mess with NTFS ACLs, so for casual purposes this should be fine.
- carpe noctem

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,190
    • View Profile
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #16 on: August 18, 2009, 11:23 AM »
Ah!  You mean actually revoke delete permissions to the folder- I didn't think of that.  I did indeed think you were referring to the read-only file attribute.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: idea - a simple prog to protect files/folder from deletion
« Reply #17 on: August 18, 2009, 11:30 AM »
Ah!  You mean actually revoke delete permissions to the folder- I didn't think of that.  I did indeed think you were referring to the read-only file attribute.
:)

Of course the delete permission can be re-applied if you have the rights to do so... but that's not something normal applications attempt to do when they want to delete a file, hence "I suspect this solution is good enough".
- carpe noctem