1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

why can't we create folders in windows in below file names

Discussion in 'C' started by vignesh1988i, Oct 4, 2009.

  1. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    namely CON,prn,NUL,etc...... it is a million dollor question even for BILL GATES and his team....... anybody having any idea???????:nice::nice:
     
  2. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    So you will give million dollars who answers this question and a kick to Bill Gates for keeping this Bug alive for so many years without the knowledge to solve it?
     
  3. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    Well... the answer to your question is here,
    http://www.go4expert.com/showthread.php?t=18238

    Do read it completely and stop spreading such rumors.
    If you don't like Windows, stop using it :)

    And yes, My 1 Million Dollars, how are you willing to give it to me.
    I accept Cash and Card both :lol:
     
  4. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    ok.... u are right.... :):) but wat's the status in other OS.. like (UNIX , LINUX , Solaris ) .. ... and till now why that bug (even in Windows '07) this is not been degugged... and what's the meaning of LPT.... that folder name also we can't create in windows na...
    ????/:)
     
  5. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    LPT = Line Print Terminal [See : http://en.wikipedia.org/wiki/LPT]
    And, we CAN create folder with name LPT (try it).
    We can NOT create folder with name LPTN, where N is a number in range 0~9.
     
  6. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    I think you did not read the article completely. You can create those folders in windows.

    LPT is for printer ports.
    if you have installed any printer, select properties and go to Ports tab.
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    It's not a bug, CON LPTx and the other names all have specific meanings under DOS and you cannot create files with those names (why would you want to anyway). They are hooks into other functionality than just creating simple files.

    The story is similar under Unix; if you try to create a file called /dev/null you won't get very far.
     
  8. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    Check the attached image
     

    Attached Files:

    • dir.jpg
      dir.jpg
      File size:
      73 KB
      Views:
      4
  9. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    hmmmmm i understand clearly... thank u :)
    :)
     
  10. indiansword

    indiansword Security Expert

    Joined:
    Oct 19, 2008
    Messages:
    496
    Likes Received:
    36
    Trophy Points:
    0
    Occupation:
    Operation Planner for 3 Australia
    Home Page:
    as xpiotos said, y wud u wanna create any folder in windows folder anyway? there are lotta other places or use any other drive.

    guyz just try to do what they arent supposed to lol.... and thats what makes thing complicated.
     
  11. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    indiansword: the issue is not creating the folder in windows folder, but giving it the system reserved names
    you would get the same error in whichever directory you create it.
    you would get the same error even if you create it in externel devices.
     
  12. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    just know wat it is :nice::nice: that's all... and one more thing.... i need to ask... as nimesh told i refered how to create the folder by the command it has specified...... now Mr. Nimesh , can be please tell me what is the INTERNAL Meaning of that command line string (mkdir \\.\d:\con)... pl. say the meaning ......... :):nice::smug:
     
  13. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    LOL, tell the "internal" meaning, but don't tell the meaning :rofl:
    Now, what does that mean ?? What exactly is "internal" here ??

    Well, I will try to explain the meaning (not sure if it's "internal") :

    It is because of the UNC Path (http://en.wikipedia.org/wiki/Universal_Naming_Convention). The Universal Naming Convention, or UNC, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer.Since, these conventions didn't exist under pure DOS, they are not backward compatible. The UNC syntax for Windows systems is as follows..

    \\RemoteHost\sharedfolder\resource

    where RemoteHost is the computer name / IP address of the computer that you wish to connect through remotely for accessing shared folder. The rest is the path.

    By providing the path in UNC syntax, you make DOS ignore the old system (because UNC was not supported earlier) of reserving the folder names like CON, LPTx etc ..
     
    nimesh likes this.

Share This Page