goodburbon said:
Originally Posted by jeepdude10000
You can't create a folder called 'con' in Microsoft Windows!
holy chit thats true
Yeah I checked. Found this on the web... gotta love Google:
Actually, this makes perfect sense if you consider the nature of the CON
device. As already pointed out by several members, DOS had a number of
reserved names for devices. Some represented actual physical devices, such
as PRN for the printer and CON for the console (represented by the keyboard
or screen, depending upon I/O mode), and others logical devices, such as
NUL. In the case above, "trying to access a filesystem object called 'con',"
you're basically trying to _open_ the console device. When used as an input,
the CON device is the keyboard; as an output, it is the screen. For example,
the command
copy setup.log con
will cause the contents of setup.log to be displayed on the screen. CON in
this case is the output device. Conversely,
copy con testfile.txt
This is a testfile. (hit Ctrl-Z to mark end of file, then enter)
1 file(s) copied.
results in a text file named "testfile.txt," containing, "This is a
tesfile." In this case, CON is the input device, represented by the keyboard
(note the order of the commands; in the first, setup.log is the source of
the copy, con the destination; in the second, con is the source and
testfile.txt is the destination). In either case, neither can be "opened" by
the file system in the same sense that a file can be opened, so if you tried
to do so I would be surprised if Windows didn't hang.