[How to] Create a folder with the name CON



This post is about the windows hidden trick. There was a group chat in the facebook some1 was telling we cant create a folder with the name.So thought of posting on that.

Yeah we can create the folder with the name con and offcourse using a small trick
First let me come to the point why we cant create the file with that name 

Why cant we create a folder with the name "CON"

DOS uses different names for the attached devices, I learnt. PRN was one such name. TYPE filename would display the contents of a file and TYPE filename > PRN would print it instead of displaying. Curiosity brings many hidden matters out. PRN would surely mean Printer and will redirect the output to the printer instead of console. Console (monitor) is the implicit default output device, and it can be bypassed if needed. So, how to put it explicitly? There must be some means to do that. Yes, there is! TYPE filename > CON performs exactly same function as TYPE filename. These special names for the devices really mean something special for the operating system and those names can not be used as folder or file names: CON, PRN, NUL, COM1 to COM9, LPT1 to LPT9, which stand for CONsole, PRiNter, NULl, serial COMmmunication ports, Line PrinTer ports.

You may also like article on : Install MAC OS ON PC Dual Boot with Windows 7

SO now how to create a folder with that name

How to create a folder with the name " CON"

  • Goto DOS
  • Type MD \\.\C:\CON. The folder will be created. You can check it in Windows Explorer also, but you can’t access it
  • To delete the folder, type RD \\.\C:\CON
  • In short, use the network path syntax instead of absolute path syntax.
  • Now on to the practical aspect of this. Why can’t we create it directly but using the network path syntax? The answer is simple. A computer can have only one default console, printer, null etc. So, if it is accessed from a network, theoretically, the console should belong to another node in the network. Since that node may not have a device which can be referred using the name CON, it will no longer be considered as a reserved name. Hence, the folder can be created.
You may also like this article : Increase your internet speed by 20% with reliable reason.

The next time when someone asks the question why we can’t create a folder by name CON, say with confidence that it is not true and give the link of this blog ok .…
If you like this post share us on facebook.




Share your views...

0 Respones to "[How to] Create a folder with the name CON"

Post a Comment

 

© 2010 Computer Tricks

Visit our latest blog TecheSound for latest tech updates.