February 1, 2007

Some Folders Cannot Be Created On Hard Disk On Windows Platform

The following reserved device names cannot be used as the name of a file:

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

they have been reserved for system purposes, and they are handled by they system. so to avoid duplicates being created by any user and mucking it up for the OS, they have been reserved!!!

if you would like to check each and every one of the list i mentioned above, try renaming a folder with any of the names above...and guess what?? they all reset themselves as 'new folder'!!!




Here is a solution of it

STEP1: goto command prompt

STEP2: type in prompt c:\> "mkdir \\.\c:\con"

STEP3: verify by typing "dir \\.\c:\con"

STEP4: delete the file or folder "rmdir \\.\c:\con" (only do this after you do step one til three)

1 comment:

krishna kashyap av said...

Wow..
This was one of the rarest
article I had ever read..
I tried naming the folders..
But could do it.. Then tried the
steps and was successful.
Work from home India