Sunday, June 14, 2009

Create the CON file

If you have tried to create a folder name CON you cant since its been used by the Windows Assembly.
Try in a command prompt (after cd-ing to that file's directory):

type GT.txt > CON

type GT.txt > CON1


But ,its possible to create CON folder in ur windows based os(XP, VISTA)

open the command Promt
then type this
note:- Choose the specifice drive that u want to create CON folder
eg :- C: , D: etc...

now type this
iam selecting the drive E:
E:\> mkdir \\.\e:\con

' hold alt+0160 or 255 and then type con,nul,com1 etc''



to creat: mkdir \\.\c:\con
to remove: rmdir \\.\c:\con

file names in Windows are reserved because they represent devices:
con, con.* -> the console
prn, prn.* -> the default printer, as a character device
aux, aux.* -> the default serial terminal, as a character device
lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9 -> the parallel ports, as character devices
lpt1.*, lpt2.*, lpt3.*, lpt4.*, lpt5.*, lpt6.*, lpt7.*, lpt8.*, lpt9.*
com1, com2, com3, com4, com5, com6, com7, com8, com9 -> the serial ports, as character devices
com1.*, com2.*, com3.*, com4.*, com5.*, com6.*, com7.*, com8.*, com9.*
nul, nul.* -> the NUL or "waste bit bucket" or "black hole for bits" or "/dev/null" device