Saturday, December 27, 2008

TO create a folder named CON in windows

Windows does not allow one to create folders/files with names like con,prn.. (atleast directly).

This is due to the fact that. There are some keywords like con, nul, aux,prn, lpt1 etc, that Microsoft Windows uses to refers to various devices

File name : Purpose

CON :Console device
PRN :Printer
AUX : Auxiliary device
COM0 COM1 COM2 : Serial ports
COM3 COM4
COM5 COM6
COM7 COM8
COM9
LPT1 LPT2 PRN : Parallel ports
NUL :Bit bucket

1st TRICK:
You can create the said folders using the command "
mkdir \\.\c:\con".
You can delete the same using the "rd \\.\c:\con" command
(I have tried this and it works)

2nd TRICK: (very simple)

  • Its reserved in windows, but not in linux.
  • Boot from some linux version and create in windows area.
  • I tried it. It really worked. But i am unable to rename, delete the folder. But be sure that u didnt crash ur system.

No comments:

Post a Comment