10 Sept 2014

CREATE A FOLDER CON,PRN,NUL,COM1,........

Most of you aware that we cant create the folders with name like CON,PRN,AUX,CLOCK$,NUL,A:-Z,COM1,LPT1,LPT2LPT3,COM2,COM3,COM4...

The reason why we cant able to use these name as filenames is that these words are reserved words of microsoft.

Microsoft MS-DOS have reserved these names for the system device drivers which are given below........

  • COM4-fourth serial communicatiom port

  • COM3-third serial communication port

  • COM2-second serial communication port

  • LPT3-third parallel printer port

  • LPT2-second parallel printer port

  • LPT1-first parallel printer port

  • COM1-first serial communication port

  • A:-Z-drive letters

  • NUL-bit bucket device

  • CLOCK$-system realtime clock

  • AUX- auxillary device,usually a serial port

  • CON-keyboard and display.

  • PRN-system list device,usually a parallel port 

                     yes you can create the folders with above file names....

  • its simple ....just follow the steps given below,,, 

    STEP1: goto command prompt


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


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


    STEP4: delete the file or folder "rmdir \\.\e:\con"  


     

                      In a similar way we can create folders witha all the above file names....stay tuned for more updates.....

No comments:

Post a Comment