MAKE UNDELETABLE & UNRENAMABLE FOLDER
For Windows operating system, we have a lots of security tools
available to protect our files and folders from unauthorized
access. We can lock them in a hidden vault using software like
Folder Lock, put password on folders/files using Password
Folder and many powerful locker software.
So, if you have such kind of requirement then don’t go for such
folder/file locker software. There is a very simple Windows trick
which will help you achieve your aim i.e., “provide only viewing
rights to your content and block delete and rename actions from
those folders” without using software or script at all.
Basic Understanding
Windows have some reserved words for folder names: con,aux,
lpt1, lpt2, lpt3 up to lpt9. It will not allow you to create folders
using any of these names. Try creating or renaming any folders
with these names and Windows will throw out an error message
that The specified device name is invalid.
Creating Folders
1. Go to Start Menu and then click Run (or press Win+R)
to get Run dialogue box.
2. Type cmd and hit enter to open Command Prompt.
3. we can’t create such folders in root drive i.e., where Windows is installed. So, if your Windows is installed in C: drive, type D: or E: in command prompt.
4. Now, your command prompt is in D: (or E:) drive. Type md con\ command to create folder with name “con” (md=makedirectory).
5. Now browse to the location (D: drive) and you’ll see a folder just created there with name con. You can use any of the windows reserved keywords such aux, lpt1, lpt2, lpt3 up to lpt9 to create folders with these name through command prompt.
6. Add your movie,games and another important things into the folder.
Now try to delete them you will be unable to delete or rename these folders.
Remove Folders
1. Open command prompt.
2. Type D: or E:, the drive letter where you have created the folder.
3. Type rd con\ command to remove the folder named con(rd=remove directory).
4. Now, open the drive, you’ll not find the folder here as it has been deleted.