Con (which stands for console) is one of several reserved system names that
cannot be used in naming folders or files.
Other words that cannot be used for folder or file names are:
AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL
These reserved system names go all the way back to the early days of Dos where con was used for file operations such as copying.
copy con c:\myfolder\myfile.txt
d:\back\myfile.txt
A conflict would occur if the folder or file was also named con.
See here for more info
http://snipurl.com/j02p
But don't ever let anyone tell you it's IMPOSSIBLE.
There actually is a way to create a folder named con or wth any other reserved named, but it would be quite a useless folder..
For convenience, I'll demonstrate with a bat file that when double clicked will create a folder named con in your c: drive.
Open up a new notepad document and enter this command:
md \\.\c:\con
Save the file with a .BAT extension.
That's it. Double click it and voila!
A folder named con will be produced.
Now try copying or moving something into it. You won't be able to. You'll get an "access denied" message. You'll soon realize you don't want this folder anymore and you'll try to delete
it, only to find, that it won't delete. You'll get a "cannot find specified file" error message.
But don't worry. We can delete it easily with another similarly syntaxed command. This time, make a bat file with this command: rd \\.\c:\con
Double clicking it will delete the folder in a flash.
:D
2007-01-22 22:15:17
·
answer #1
·
answered by Ivan P 2
·
1⤊
0⤋
ha... solid Q.... this became a trick we used to ask in school time, right here you pass .. this is not that extraordinary. 'con' is a reserved observe from the previous DOS days, purely meaning 'console'. in case you had to create a clean text fabric report in DOS you will be able to desire to type 'replica con newfile.txt' meaning replica from the console to newfile.txt. this enable you to type some lines and once you ended the report with ^Z (DOSish for 'end of report') you're able to have a report reported as newfile.txt containing despite you wrote interior the console. it is definitely nevertheless a danger interior the abode windows XP console, and can you notice what mess it could reason in case you enable data or folders have the call 'con'? What could 'replica con newfile.txt' then mean? BSOD? Giving this record of different DOS units that can not be used as folder 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. desire you get it.
2016-11-01 01:51:04
·
answer #2
·
answered by doti 4
·
0⤊
0⤋
A file name cannot contain asterisk's. When you try too name a file this way, XP normally will show you all the symbols that cannot be used. Con is also a system command, you cannot use commands as file names.
2007-01-23 15:05:41
·
answer #3
·
answered by Sam G 2
·
0⤊
0⤋
Yes. Because Windows system interprets CON as Console. Like COPY CON command of DOS. In that command it copies all input from console to a file. So you can't use system keywords.
2007-01-22 22:27:54
·
answer #4
·
answered by microcomputers_amd 2
·
0⤊
0⤋
i think it is reseverd for some commands
earier in DOS We use con to create files
ex. Copy con abc.txt
and in windows all DOS command are working in GUI format.
regards
amit
2007-01-22 22:19:03
·
answer #5
·
answered by amitdelpanwar 1
·
0⤊
0⤋
con refers to console
u can say copy con autoexec.bat
and use it as editor
meaning whatever is in console save it the file mentioned.
it is a reserved word by OS. i.e. why u can't use
2007-01-22 22:09:53
·
answer #6
·
answered by lakshmi r 4
·
0⤊
0⤋
These are reserved folders. Check out http://support.microsoft.com/kb/279868
2007-01-23 05:14:04
·
answer #7
·
answered by Deepak Vasudevan 5
·
0⤊
0⤋
because "con" is a _old_ MS-DOS stuff!
2007-01-22 22:59:30
·
answer #8
·
answered by ajaj_desai 1
·
0⤊
0⤋