Computer Help forum

Question

How to make a file undeletable?

by lukigno95 / November 20, 2013 1:28 AM PST

HI Happy

I have a windows 8 pc 64bit

I'd like to know how to make a file in the system32 folder undeletable or very difficult to do.
This file is in system32>Drivers.
I tried with lock hunter but doesn't lock system file.

The file must be undeletable from the administrator (me) but readeble

It's for a good cause Wink

Thank you for your help Grin

Discussion is locked
You are posting a reply to: How to make a file undeletable?
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How to make a file undeletable?
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Odd idea, but we used to do this as a hack
by Steven Haninger / November 20, 2013 1:38 AM PST

Way back when, my son had some game that required the floppy disk be reinserted about every 5th launch in order to verify it wasn't pirated. My workaround was to find the file (it was hidden) and copy it to another location. I made a batch file to copy the "clean" file back into the program folder whenever the game was launched. It never asked for the floppy again. I suppose you could do something like that. In any event, if preserving the file is that important, you want a backup copy of it somewhere.

Collapse -
I mustn't delete
by lukigno95 / November 21, 2013 2:09 AM PST

I need something that make that i can't delete it .-.

Collapse -
Answer
Keep in mind this is not a feature of NTFS.
by R. Proffitt Forum moderator / November 20, 2013 1:49 AM PST

I can't guess how long you've been at this but NTFS permissions and you've exhausted the usual methods noted in past discussions like http://superuser.com/questions/362623/make-file-undeleteable-but-accessable

"If your account is an Admin account and not a limited user, your final result is impossible. By definition, an Admin account has full permissions to any object on the system, either explicitly or implicitly through "Take ownership"."

Even so you may encounter someone new or old to Windows, NTFS and insistent that this is a feature in this rather old OS and file system.

With all that behind us you could write an app that opens said file and places a file lock on it. As explorer and such won't delete a file in use, that app would bandaid this one. And if the programmer is really good they would convert it into a service.
Bob

Collapse -
Software?
by lukigno95 / November 21, 2013 2:10 AM PST

Is there any software to do this? Happy

Collapse -
There could be.
by R. Proffitt Forum moderator / November 21, 2013 2:16 AM PST
In reply to: Software?

I think this might be all of 20 or less lines of code in the language of your choice. Visual Studio has free versions so that's not a big hurdle.

What you are asking for is not supported by the OS but we could work around it.

I should add this nugget about svrany to complete the needed tools.
http://www.supernifty.org/blog/2007/11/05/hack-it-2-convert-any-windows-application-to-a-service/

But I would be guessing if you expected this to be some ready to use app replete with friendly GUI, manuals and support. To that question, no, I've never seen such but as a programmer I offer up the idea for you to implement.
Bob

Collapse -
Programming
by lukigno95 / November 21, 2013 6:04 AM PST
In reply to: There could be.

I'm not a programmer i kow nothing about programming :S

As soon as i have a few free time i'll read the link that you posted and i'll reply you Happy

Collapse -
OK, I fibbed.
by R. Proffitt Forum moderator / November 21, 2013 6:18 AM PST
In reply to: Programming

It should be a handful or less lines of code. You know what you want to do, just a file open command then to go to sleep. That's 2 lines long.

Seems like any technical user that knows what they want would do this. That is, you know enough about the OS that you knew it won't do what you want natively and you also know it would let you delete a file that is open so time to apply what you know.
Bob

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!