In Microsoft Windows 7 you can make any file of your choice to become undeletable or non deletable, so that, the user himself or self does not accidentally delete it.
You can add the attribute to the file by right click over it, going to properties and checking the right boxes. However, we are showing you more powerful way: making any file undeletable by using command prompt.
Click start, type “cmd” (without the quotation marks) in the search field; command promp icon will appear on the top of the start menu list, right click over it and select “Run as administrator”. Accept any security prompt:
Now, in the command prompt, type
Followed by any one or combination of these codes; all three can be used together:
+s : This variable makes the “Attribute” of a file into a system file
+h : This variable makes the “Attribute” of a file hidden
+a : This variable makes the “Attribute” of a file archived
followed by the filepath and file name separated by a backslash.
So the whole command looks like:
attrib +s +h +a filepathfilename
Simply hit enter and you are done.Tagged With make file in a folder undeletable , make a file not deletable w7 , jna make files on windows not deletable , in windows how do you make contents not deletable in a folder , how to set up shortcut as undeletable , how to make a pdf page not deletable , how to make a pdf file not deletable , FILE HIDEN AND NON DELETEABLE MAKER\ , create undeleteable file -folder , windows XP make files undeletable for non administrators
so can we delete the file by simle process or theere is different processs for that
You can use two methods to delete the file:
1) Changing the attribute (s) from Windows 7 command prompt again (minus sign instead of plus sign; example: -s instead of +s).
2) Running a registry file to gain a higher privilege to delete system files, you will get the needed registry file here: http://thecustomizewindows.com/2010/12/solution-for-windows-7-is-not-allowing-access-to-owners-own-file/. Do the same as written for the problem to gain control over that file. You will able to delete it then.
Hope it helps.
Well i can still delete the file after doing this…i removed the +h attribute as i would still like to see the file (but that makes not difference)