get path to all user's documents folder

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis C. Drumm

    get path to all user's documents folder

    How do I programmaticall y get the path for the windows shared documents
    folder which is also the all user's document folder.

    Thanks,

    Dennis

  • VJ

    #2
    Re: get path to all user's documents folder

    Environment.Get FolderPath(Envi ronment.Special Folder.<Oneofth eOptions>)

    Is it not avaiable in the option?...

    VJ

    "Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
    news:2A4D1055-4F4C-403F-8543-AFA22ECD852E@mi crosoft.com...
    How do I programmaticall y get the path for the windows shared documents
    folder which is also the all user's document folder.
    >
    Thanks,
    >
    Dennis

    Comment

    • Dennis C. Drumm

      #3
      Re: get path to all user's documents folder

      That is where i started, but there is not a SecialFolder for the all-user's
      documents folder. Any other suggestions???

      Dennis


      "VJ" <nonewsaddress@ yahoo.comwrote in message
      news:u1NbV6lZHH A.4720@TK2MSFTN GP06.phx.gbl...
      Environment.Get FolderPath(Envi ronment.Special Folder.<Oneofth eOptions>)
      >
      Is it not avaiable in the option?...
      >
      VJ
      >
      "Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
      news:2A4D1055-4F4C-403F-8543-AFA22ECD852E@mi crosoft.com...
      >How do I programmaticall y get the path for the windows shared documents
      >folder which is also the all user's document folder.
      >>
      >Thanks,
      >>
      >Dennis
      >
      >

      Comment

      • VJ

        #4
        Re: get path to all user's documents folder

        Then the way to go is native API. I am not sure of the exact command, but
        the below site may help.



        There is one more Environment.Get EnvironmentVari able("") <-- but I doubt it
        might be there...

        VJ

        "Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
        news:3E895E84-4344-4C4F-9C78-663CA17CF2C4@mi crosoft.com...
        That is where i started, but there is not a SecialFolder for the
        all-user's documents folder. Any other suggestions???
        >
        Dennis
        >
        >
        "VJ" <nonewsaddress@ yahoo.comwrote in message
        news:u1NbV6lZHH A.4720@TK2MSFTN GP06.phx.gbl...
        >Environment.Ge tFolderPath(Env ironment.Specia lFolder.<Oneoft heOptions>)
        >>
        >Is it not avaiable in the option?...
        >>
        >VJ
        >>
        >"Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
        >news:2A4D105 5-4F4C-403F-8543-AFA22ECD852E@mi crosoft.com...
        >>How do I programmaticall y get the path for the windows shared documents
        >>folder which is also the all user's document folder.
        >>>
        >>Thanks,
        >>>
        >>Dennis
        >>
        >>
        >

        Comment

        • Dennis C. Drumm

          #5
          Re: get path to all user's documents folder

          Thanks,

          As you suspected, I couldn't find the proper string for using
          GetEnvironmentV ariable, so i had to use a pinvoke command.

          Dennis


          "VJ" <nonewsaddress@ yahoo.comwrote in message
          news:uN9R51mZHH A.2316@TK2MSFTN GP04.phx.gbl...
          Then the way to go is native API. I am not sure of the exact command, but
          the below site may help.
          >

          >
          There is one more Environment.Get EnvironmentVari able("") <-- but I doubt
          it might be there...
          >
          VJ
          >
          "Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
          news:3E895E84-4344-4C4F-9C78-663CA17CF2C4@mi crosoft.com...
          >That is where i started, but there is not a SecialFolder for the
          >all-user's documents folder. Any other suggestions???
          >>
          >Dennis
          >>
          >>
          >"VJ" <nonewsaddress@ yahoo.comwrote in message
          >news:u1NbV6lZH HA.4720@TK2MSFT NGP06.phx.gbl.. .
          >>Environment.G etFolderPath(En vironment.Speci alFolder.<Oneof theOptions>)
          >>>
          >>Is it not avaiable in the option?...
          >>>
          >>VJ
          >>>
          >>"Dennis C. Drumm" <dcdrumm_@commu nity.nospamwrot e in message
          >>news:2A4D10 55-4F4C-403F-8543-AFA22ECD852E@mi crosoft.com...
          >>>How do I programmaticall y get the path for the windows shared documents
          >>>folder which is also the all user's document folder.
          >>>>
          >>>Thanks,
          >>>>
          >>>Dennis
          >>>
          >>>
          >>
          >
          >

          Comment

          Working...