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. File Access on Remote Computers

File Access on Remote Computers

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 2 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.
  • M Offline
    M Offline
    Mats Euren
    wrote on last edited by
    #1

    Hi! I'm looking for an example on how to program file access on remote computers. I know the path (share), filename, the username and password on the remote computer, but I don't know how to program the access control. I saw a post in another forum on the internet where someone suggested to use the NET USE command. To me, that doesn't look like the ultimate solution. I read somewhere about Generic prinipals? But there are no examples whatsoever on how to do it?! Does anyone have any experience with that? Regards Mats

    G 1 Reply Last reply
    0
    • M Mats Euren

      Hi! I'm looking for an example on how to program file access on remote computers. I know the path (share), filename, the username and password on the remote computer, but I don't know how to program the access control. I saw a post in another forum on the internet where someone suggested to use the NET USE command. To me, that doesn't look like the ultimate solution. I read somewhere about Generic prinipals? But there are no examples whatsoever on how to do it?! Does anyone have any experience with that? Regards Mats

      G Offline
      G Offline
      Gavin Roberts
      wrote on last edited by
      #2

      net use G: \\host\path password /user:username http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net\_use.mspx?mfr=true or In an explorer window, click Tools and Map Network Drive. You can then put in the details there.

      M 1 Reply Last reply
      0
      • G Gavin Roberts

        net use G: \\host\path password /user:username http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net\_use.mspx?mfr=true or In an explorer window, click Tools and Map Network Drive. You can then put in the details there.

        M Offline
        M Offline
        Mats Euren
        wrote on last edited by
        #3

        I think that this is not the way to do it. I need code examples (C#) on how to access files on a remote computer. Not just to map a network drive. There must be another "cleaner" method to do this. Or am I completely wrong here?

        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