If you are running on widows then try making a folder named "con". it should not let you make it for some reason. i dont know if anyone already knew about this(mostly likely do) but i just wanted to post it for other people if they didn't know. There are also some other words that a folder cannot be named as, like AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL. im sure there is a perfectly good reason behind this. if anyone knows please post.
PS. Sorry if this is in the wrong section.
Yeah, that's normal, those are reserved names assigned for peripherals, from the DOS times (and probably Unix too ? ). CON = Console, that is keyboard (for input) and monitor (for output). COM1/2/3/4 are serial ports LPT.. = Line Printer (parallel port) PRN = Printer too NUL = The Void
So when you want to redirect a program's output to one of these, you just had to use something like :
commandname commandparameters > nul
The line above shall prevent the command from displaying anything, provided that it's programmed to 'print' to the default output (which is the monitor) and not to display on monitor specificaly.
You may also use the command line to create a new text file, using this :
copy con filename
Then you'll be able to enter whatever you want, until you press F6 and enter to signify that it's the end of the new file you want to save.
You could also print a text file using :
type filename > PRN
One last thingy with CON again : you could select if you wanted the display text mode to be 25 or 43 lines, 40 or 80 colums ... with the MODE command, and something like :
mode con lines=43
mode con cols=40