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. Full path of mapped directory

Full path of mapped directory

Scheduled Pinned Locked Moved C#
help
5 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.
  • A Offline
    A Offline
    Azghar Hussain
    wrote on last edited by
    #1

    Hi everybody, I am stucked with a small problem. Please help me. I want to know that original path of the directory mapped to my system. Let me explain you more clearly Imaging "worker" folder on System1 is mapped to System2 as "N" drive and from System2 user can see the folder as N:\\worker. I want to know the original path of worker folder on system1 like if worker folder is in C drive then "C:\\worker" Let me know if you want some more info. Thanks, Azghar

    If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

    D 1 Reply Last reply
    0
    • A Azghar Hussain

      Hi everybody, I am stucked with a small problem. Please help me. I want to know that original path of the directory mapped to my system. Let me explain you more clearly Imaging "worker" folder on System1 is mapped to System2 as "N" drive and from System2 user can see the folder as N:\\worker. I want to know the original path of worker folder on system1 like if worker folder is in C drive then "C:\\worker" Let me know if you want some more info. Thanks, Azghar

      If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      From System2, there is no way to determine what that path is.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        From System2, there is no way to determine what that path is.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        M Offline
        M Offline
        Matt Gerrans
        wrote on last edited by
        #3

        You can determine it from System1, eg. "net share", so you might also be able to somehow do it from System2 with WMI, but I'll leave the details of that to you. :)

        Matt Gerrans

        D 1 Reply Last reply
        0
        • M Matt Gerrans

          You can determine it from System1, eg. "net share", so you might also be able to somehow do it from System2 with WMI, but I'll leave the details of that to you. :)

          Matt Gerrans

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          :doh:! You're right! So long as the user that's running the code has the appropriate permissions on the server machine, the code can use WMI to enumerate the Shares on the server.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          A 1 Reply Last reply
          0
          • D Dave Kreskowiak

            :doh:! You're right! So long as the user that's running the code has the appropriate permissions on the server machine, the code can use WMI to enumerate the Shares on the server.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            A Offline
            A Offline
            Azghar Hussain
            wrote on last edited by
            #5

            Can you show may sample program of WMI....

            If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

            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