Create “con” folder in Windows OS

Create “con” folder in Windows OS

Hello,
In windows we cant create folders with names CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9 directly from GUI. This is because, DOS device names are reserved words, and cannot be used as folder or file names. When parsing a reference to a file or folder, Windows correctly checks for the case in which a single DOS device name is used in the path, and treats it as invalid. But in computers there is nothing is Impossible. We can create folders with these names in Windows. Just follow the steps, Goto command prompt by typing cmd in the run menu. Type the following command to create the folders with these names…

md \\.\\\con

The path may be like c:\abcd\xyz\… anything Similiarly remove the folder by replacing md with rd No Magic only Logic… UNC(Universal Naming Convention) is the Logic.

These folders cannt be created becoz as thr r reserved
words in C/C++ so they r in OS.As avariable cannt be
named as keyword so as the folder.
ONE MORE METHOD TO MAKE FOLDER ::

1.open cmd prompt.
2.type
c:>%pathname% mkdir
3.press ENTER

However some folder names can still not be named in
DOS due to matching keywords…

Enjoy..

Latest posts by Jayesh (see all)

Sharing

Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.