Question:
Why is it that a folder with the name 'con' cannot be made on the computer?
Akansha S
2007-04-26 02:20:26 UTC
Why is it that a folder with the name 'con' cannot be made on the computer?
Four answers:
_Chetu_
2007-04-26 02:27:44 UTC
Try other like COM1 or LPT1 or LPT2 .. it reserved word in Microsoft Windows that you cannot use it anywhere.



This actually is a unix-like feature. DOS device drivers are accessible like normal files, i.e. the everything-is-a-file philosophy. CON is the equivalent of /dev/tty, NUL of /dev/null, COM# of /dev/ttyS#, LPT# of /dev/lp# and CLOCK$ corresponds to /dev/rtc (PRN is an alias to LPT1, AUX is COM1). Every character device can be opened this way, block devices (which are assumed to be FAT formatted...) are named A: to Z:, as you will know. Many pseudo character devices (drivers which had to be loaded as drivers but were no character devices, like EMM386, HIMEM.SYS, ..) had forbidden characters like '*' in their device names to be hidden from the user.





We can do this by following method

STEP1: goto command prompt

STEP2: type in prompt e:\> "mkdir \\.\e:\con"

STEP3: verify by typing "dir \\.\e:\con"

STEP4: delete the file or folder "rmdir \\.\e:\con"
arunprasad s
2007-04-26 09:26:25 UTC
Its the reserved keyword that is used my microsoft to develop the operating system so we cant create folders using that name
Cupcake
2007-04-26 09:23:17 UTC
Its a reserved key word for Windows.
Ganesh
2007-04-26 09:23:57 UTC
i guess it is some assembly language conflict.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...