Jump to content

Folder ... CON


MGadAllah

Recommended Posts


adding an ASCII 255 character to the name?
:blushing::huh::unsure::wacko:

Type con and alt+255 to get characters by their number (not only for ASCII but for UNICODE either)

----------------------------

Reserved device name

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

Link to comment
Share on other sites

"con" is short for console, which under Windows is a device name. "nul" is another device name. "Con" reads input from the keyboard and "nul" can be used to redirect output into nothing or can be used to create a zero length file.

Examples:

C:\> type con > test.txt ( you can also use copy con test.txt )

this

is a

3 line test

^Z (this means press ctrl-Z on a line by itself)

C:\>

now pull up test.txt in notepad and you will see the 3 lines that you typed in.

C:\> dir > nul (notice nothing happens, this is because the output was redirected into nothingness :P

C:\> type nul > test.txt

C:\ dir test.txt (this creates a file, test.txt, that has a length of zero bytes)

The Alt-255 trick mentioned above is not as cool as it used to be under Windows 98. You could create a folder from the command prompt by typing:

mkdir test<alt-255> which means to type the word test and then hold the alt key and press 255 on the keypad. The cursor would advance one space over to the right. A folder named "abc<alt-255>def" would like "abc def". The Win 98 My Computer program could not navigate into these directories. They were only accessible from the command prompt by using "cd abc<alt-255>def". Windows XP's My Computer as well as the tab-completion feature of the command-prompt have no problem with these folder names.

-John

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...