Wednesday, August 28, 2013

How to create a con,auf,prn,nul Folders Using Command Prompt

How to create a con/auf/prn/nul Folders Using Command Prompt:
In windows it is not possible to create a folder with the following names
Con
Prn
Nul
Aux
Com1
Com2
Com3
Com4
Com5
Com6
Com7
Com8
Com9
Lpt1
Lpt2
Lpt3
Lpt4
Lpt5
Lpt6
Lpt7
Lpt8
Lpt9

If you try to create a folder with above names you will get an error message like "The specified device name is invalid"

Reason: Above all are the reserved keywords used by DOS, if you try to create a folder with above names there will be an ambiguity problem
Solution for the above problem is creating a folders using command prompt
Step 1: Open your command prompt (Go start-> type cmd ->click on enter)
Step 2: By using MKDIR (or) MD commands your can create new folder in your computer
Syntax 1: Creating a con/auf/com1.etc  folder using MKDIR command
C:/>mkdir \\.\[Path Name to create a folder]\[folder name]
Go to your desktop check for con folder

Syntax 2: Creating a con/auf/com1.etc folder using MD command
C:/>md \\.\[Path Name to create a folder]\[folder name]
Go to your desktop check for prn folder
Note: By using command prompt we can create a folder with any name
Enjoy :)
Thank you for visiting how2doit.in, if you find any error in my post, please let me now in the comments 


Share This Post →


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Blog Archive