Accessing all Mapped drives using c# in a Network

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nmsreddi
    Contributor
    • Jul 2006
    • 366

    #1

    Accessing all Mapped drives using c# in a Network

    Hi Friends,

    I want to develop a windows service ,such that it should access all the Mapped drives to the server in WAN.

    I am using windows 2003 Server R2 ,where we an option of DFS but any one have an idea how to access this DFS using c#

    Any help Please

    Thanks& Regards
    nmsreddi
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    If it's a mapped drive, just enumerate over the drive list?

    Comment

    • nmsreddi
      Contributor
      • Jul 2006
      • 366

      #3
      Originally posted by Plater
      If it's a mapped drive, just enumerate over the drive list?
      Hi Platter,

      Thanks for your Reply ,

      But first i have to access all the shared drives in network na , and i want to arrange them in directory hierarchy like our windows .

      the best example what i want to do is just similar to DFS(distributed file system)

      in windows2003 server R2 ,in this all the shared drives will be shown as folder hierarchy .

      just let me is there any possibility to access DFS technology in C#.

      Thanks
      Nmsreddi

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Well I know .NET has methods for accessing the ActiveDirectory , you might be able to get network shares through that. I'm not really sure how though.

        Comment

        • nmsreddi
          Contributor
          • Jul 2006
          • 366

          #5
          Originally posted by Plater
          Well I know .NET has methods for accessing the ActiveDirectory , you might be able to get network shares through that. I'm not really sure how though.
          Ok fine platter ,i am on my way to finish it, if any new suggestion let me know .


          Thanks
          nmsreddi

          Comment

          Working...