Home » Windows » how to create con folder in windows

how to create con folder in windows

how to create con folder in windows

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

Usally the answer comes no,Yes most off us even don’t even think about it,when we create a new folder or any file  and try to rename it to folder like con,com1, nul,prn  In Windows XP the folder name automatically changes back to “New Folder”, Where as in Windows 7/Vista  you get an error message “The specified device name is invalid”.
con1 how to create con folder in windows

make con file

What is the reason for this?

this means that these names represent the internal devices on the compter in windows system so we cannot create folders with the above names like com1,com2 etc.
* Below is a list of default device driver names associated with the problem why we can’t do that directly.
Name    Function
—-    ——–
CON     Keyboard and display
PRN     System list device, usually a parallel port
AUX     Auxiliary device, usually a serial port
CLOCK   System real-time clock
NUL       Bit-bucket device
A:-Z:       Drive letters
COM1    First serial communications port
LPT1    First parallel printer port
LPT2    Second parallel printer port
LPT3    Third parallel printer port
COM2    Second serial communications port
COM3    Third serial communications port
COM4    Fourth serial communications port
Now question comes,
Can we still create  folder name “com1”, “nul”, “prn” ,“lpt1?,“com2? ,“com2?  etc in windows ?
yes,
Step1: Go to command prompt( Press windows+R key)
Step2. Type CMD then enter
Step3: type D:
Step4: then type md \.D:con in prompt if you want to make con folder in D: drive
likewise you can make  “prn”, “nul” “com1″, “com2″,  “lpt1″ etc folder.
How to delete folder made by this process?
To delete the folder
rd \.\D:con
Use the following command

NOTE: The folder which you made by this process can only be deleted from the command prompt(CMD).You cannot remove it by just right clicking and selecting  delete.
Note: Acording to MS


 


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge