Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to open MyDocument Explorer, My Network places Explorer in C#

How to open MyDocument Explorer, My Network places Explorer in C#

Scheduled Pinned Locked Moved C#
csharpcomsysadmintutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sanjib Raj
    wrote on last edited by
    #1

    i have used System.Diagnostics.Process.Start("explorer.exe", "/e,/select,c:"); for Opening My Computer. it works. but i want to open My Doc, My Network place also. how it possible? Thanks. Sanjit.rajbanshi@wlinktech.com

    K D 2 Replies Last reply
    0
    • S Sanjib Raj

      i have used System.Diagnostics.Process.Start("explorer.exe", "/e,/select,c:"); for Opening My Computer. it works. but i want to open My Doc, My Network place also. how it possible? Thanks. Sanjit.rajbanshi@wlinktech.com

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You should just be able to put "My Documents" in the arguments list and it should work fine. So the code is: System.Diagnostics.Process.Start("explorer.exe", "My Documents"); Hope that helps. Ben

      1 Reply Last reply
      0
      • S Sanjib Raj

        i have used System.Diagnostics.Process.Start("explorer.exe", "/e,/select,c:"); for Opening My Computer. it works. but i want to open My Doc, My Network place also. how it possible? Thanks. Sanjit.rajbanshi@wlinktech.com

        D Offline
        D Offline
        Douglas Troy
        wrote on last edited by
        #3

        You can use the following to get that path: string myComputerFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer); You can then use that information to shell to it ...


        :..::. Douglas H. Troy ::..
        Bad Astronomy |VCF|wxWidgets|WTL

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups