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 / C++ / MFC
  4. Connect to Remote Machine

Connect to Remote Machine

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminjson
4 Posts 4 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.
  • K Offline
    K Offline
    kiran janaswamy
    wrote on last edited by
    #1

    Hi all, i want to access remote folders in a network. I am using NetUseAdd(...) Api, i am able to establish a connection to the Remote Machine what shall i do to access the Remote Folders. thanks, uday. uday kiran uday kiran

    stefanmihaimogaS D F 3 Replies Last reply
    0
    • K kiran janaswamy

      Hi all, i want to access remote folders in a network. I am using NetUseAdd(...) Api, i am able to establish a connection to the Remote Machine what shall i do to access the Remote Folders. thanks, uday. uday kiran uday kiran

      stefanmihaimogaS Offline
      stefanmihaimogaS Offline
      stefanmihaimoga
      wrote on last edited by
      #2

      Would be simpler to just open "\\MachineNameInYourNetwork\SharedFolder\"? Any problem with that? Good luck!

      1 Reply Last reply
      0
      • K kiran janaswamy

        Hi all, i want to access remote folders in a network. I am using NetUseAdd(...) Api, i am able to establish a connection to the Remote Machine what shall i do to access the Remote Folders. thanks, uday. uday kiran uday kiran

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Once you have mapped a drive letter to the remote machine, accessing a folder on it is done exactly like you would for any other folder on your local machine. However, you might be better served to use UNC instead of bothering with NetUseAdd() and drive letters.


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        1 Reply Last reply
        0
        • K kiran janaswamy

          Hi all, i want to access remote folders in a network. I am using NetUseAdd(...) Api, i am able to establish a connection to the Remote Machine what shall i do to access the Remote Folders. thanks, uday. uday kiran uday kiran

          F Offline
          F Offline
          Fundoo7
          wrote on last edited by
          #4

          You can use normal SDK function FindFristFile/FindNextFile() with WIN32_FIND_DATA's cFilename as "\\\\" .Make sure to share the folder. Best Regards, Deepu

          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