Results 1 to 4 of 4

Thread: SpecialFolder confusion [Resolved]

  1. #1

    Thread Starter
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840

    Question SpecialFolder confusion [Resolved]

    Hi.

    In VS 2003 when using Environment.GetFolderPath you can select Desktop and DesktopDirectory. What's the difference?
    The help says that one is logical and the other is physical but the string it returns is the same

    You can also select MyComputer. What's up with that? The string returned there is just "".
    Does anyone know what the MyComputer (and the rest of those not found in 2002) is for and how to use it?
    Last edited by pax; Jun 5th, 2004 at 05:13 PM.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    I believe the logical would be in english computers like : "Desktop" while in portuguese for example "Ambiente de trabalho".

    The phisical is the REAL full path: "C:\windows\desktop\" or whatever it is
    \m/\m/

  3. #3

    Thread Starter
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    I still don't get it. Both of them are returning the same string?!?
    VB Code:
    1. Msgbox (Environment.GetFolderPath(Environment.SpecialFolders.Desktop))
    2. Msgbox (Environment.GetFolderPath(Environment.SpecialFolders.DesktopDirectory))

    and

    VB Code:
    1. Msgbox (Environment.GetFolderPath(Environment.SpecialFolders.MyComputer))

    just returns ""
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  4. #4

    Thread Starter
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    Nevermind. It just occured to me...

    They are of course for the FolderBrowserDialog RootFolder property.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width