1.

Solve : Why can't create a folder name as "Con"?

Answer»

I wonder why can't create a folder name as "Con" in Windows XP platform. http://www.hoax-slayer.com/con-folder-name.shtml

Quote from: blockHEAD on June 26, 2009, 01:52:25 AM

http://www.hoax-slayer.com/con-folder-name.shtml



How come my friend got a folder name as con at C drive? Please refer to below image. Virus?

[attachment deleted by ADMIN] Quote from: whosyourdaddy on June 26, 2009, 02:39:49 AM
How come my friend got a folder name as con at C drive? Please refer to below image. Virus?
Device DRIVER folder, maybe? Idk..'con' is one of a NUMBER of reserved names that aren't allowed as file/folder names.

While the folder can't be made through Windows Explorer, it can be 'forced' through the command prompt by using:

md\\.\\c:\\con

Likewise, it can be removed:

rmdir\\.\\c:\\conhttp://forums.majorgeeks.com/showpost.php?p=1032918&postcount=19

Quote
CON is the console DEVICE and as such represents an operating system protected string. In the old days of DOS before EDIT or NOTEPAD, there was an easy way for a tech to create a batch file from the keyboard. Using the command line syntax:
C:\>COPY CON C:\test.bat<enter>
ECHO Everything that I'm now typing would be entered into the TEST.BAT file. To terminate this redirection requires that you press the character combo ctrl-z. On your screen it would look like this: ^Z<ctrl-Z><enter>

Above is a legitimate batch file that will run on any windows machine that can open a command console. If you want to duplicate this for yourselves, where you see <enter> hit the Enter key, and <ctrl-Z> hit the combo Ctrl-Z. ALSO, the BOLD text is what you actually type. After it's built you'll see "1 file(s) copied" and you can then type at the prompt:
C:\>test<enter> ( the text below will appear )
Everything that I'm now typing would be entered into the TEST.BAT file. To terminate this redirection requires that you press the character combo ctrl-z. On your screen it would look like this: ^Z


Discussion

No Comment Found