Tuesday, 25 February 2014

How to create a folder which cant be deleted or renamed

this is a Simple trick on creating a folder  which cant be renamed or deleted in windows Operating System which most of them may not be aware of.

Creating a folder with reserved words like aux, con, lpt1, lp2,... com1, com2,... nul,... is not allowed in windows operating system directly,but we can do it from Command prompt.

[Image: undeletable-folder.jpg]


How to create a folder which cant be deleted or renamed ?

* Go to start menu and open Run.
* Type cmd and click enter in Run to open Command Prompt.
* Choose D: or E: or any Drive other than the drive where windows is installed as windows doesn`t allow to create such folders in Root Directory.
* Type D: or E: and press Enter in cmd
* Type md aux\ and Press Enter
* You can use any of the above reserved words instead of aux in the above command
* Now you will be able to see the folder with name aux created in your Directory.
* Try Deleting or renaming the folder and you will be warned by the windows.

Next question will be on can we not delete the folder ? the answer is yes and can be done with command Prompt

                                         [Image: How-to-Delete-undeletable-Files-and-Folders.jpg]

How to Delete the aux Folder ?

* Open Command Prompt again
* Type D: or E: ( on the directory which you just created) and press Enter
* Type rd aux\ and press Enter
* Now look into the Directory and the folder will be vanished


No comments:

Post a Comment