Cannot create folder with following names
CON - Keyboard and display PRN - System list device, usually a parallel port AUX - Auxiliary device, usually a serial port CLOCK$ - System real-time clock NUL - Bit-bucket device A: - Z: - Drive letters COM1 - First serial communications port COM2 - Second serial communications port COM3 - Third serial communications port COM4 - Fourth serial communications port LPT1 - First parallel printer port LPT2 - Second parallel printer port LPT3 - Third parallel printer port
But, you can create folder name as above, there is some tricks
Go to command prompt d:\>md \\.\d:\CON d:\>md \\.\d:\PRN ---------- ----------That is it! Go to windows Explorer & verify it
Remove those folder’s like below:
Go to command prompt d:\>rd \\.\d:\CON d:\>rd \\.\d:\PRNThere is nothing great in this...
There must be some function named as CON in folder creation library of windows. When we try to execute the command named as "CreateFolderName=CON" it get clashed with the config function. So it changes it to by default new folder name, i.e. New Folder.
DOS would recognize "NULL", "PRM", "CON", etc are not special files in windows to maintain the FAT table but are used for typical batch entry. That's not a bug, that's a feature
All this stuff has been documented going way back.
Copyright - There is no copyright on the code. You can copy, change and distribute it freely. Just mentioning this site should be fair
(C) June 2008, manivelcode
1 comment:
Cool information Mr Manivel
Post a Comment