Monday, December 6, 2010

Can you create a folder named “con”, “prn”, “nul” “com1″ “com2″ “lpt1″ etc. in windows ?

The answer is NO and YES!
NO because when create a new folder and try to rename it to any one of the above specified names, you know what happens! In Windows XP the folder name automatically changes back to “New Folder” no matter you try any number of times. Where as in Windows Vista/7 when you try to rename the file you get an error message “The specified device name is invalid”.
What is the reason for this? Simple, these names represent the internal devices and hence we cannot create folders with the above names.
 YES because it is possible by using to different methods                                                                            

      1. Right click on desktop
      2. Make new folder
      3. Type CON and ALT+255.

    OR
      1. Goto command prompt
      2. Type in prompt e:\> "mkdir \\.\e:\con"
      3. Verify by typing "dir \\.\e:\con"
      4. Delete the file or folder "rmdir \\.\e:\con"

So This is How you can easily make Folders with name "CON" , "COM1", "LPT1" etc :)

No comments:

Post a Comment