Thursday, 10 November 2011

How to Create a folder named "CON" in Windows

you can't create a folder named “con”, “prn”, “nul” “com1″ “com2″ “lpt1″ etc. in windows.

What is the reason for this? Simple, these names represent the internal devices and hence we cannot create folders with the above names.

but it is possible to create these folder using command prompt...

If you want to create then do following.

1)  Go to command prompt

2)  now if you want to create folder in D: drive then type following command in prompt :

        md \\.\d:\con










here “con” can be replaced by any other names such as “prn”, “nul” “com1″ “com2″ “lpt1"....

4) now if you want to delete this folder..

     rd \\.\d:\con  

The folder can only be removed from command prompt.




No comments:

Post a Comment