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. Some help of how i can send files remotely in network.

Some help of how i can send files remotely in network.

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminsecurityhelp
2 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.
  • F Offline
    F Offline
    faroqtam
    wrote on last edited by
    #1

    ineed to remotley send files from one machine to the other by only one program on one machine . please some source code (VC6) with my thanks faroq from yemen thammar working in thammar universty and my intersted about network and security im programmer from 6 years ago and ihave my B.C from this universty

    K 1 Reply Last reply
    0
    • F faroqtam

      ineed to remotley send files from one machine to the other by only one program on one machine . please some source code (VC6) with my thanks faroq from yemen thammar working in thammar universty and my intersted about network and security im programmer from 6 years ago and ihave my B.C from this universty

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

      This is actually impossible. Net cards (or any other piece of hardware) do not have the ability to create files (yes drives can make files but this is actually because the OS tells them how to). Fortunately any OS that is capable of networking also includes programs to convert data sent over the network into files (this is called an abstraction layer) that makes it as simple to do as saving any other file. This means that to save a file in a shared network directory all you need to do is save it to a network path. The source directory must have read permissions and the destination directory must have write permissions and be shared on the network as such. Different OSes have different ways to set these options. After you have the permissions setup you can use any file operation you want to do this. For example, to copy the file C:\dat.txt to //sysb/inc/dat.txt you could use the API function CopyFile like so: CopyFile("c:\dat.txt", "//sysB/inc/dat.txt", FALSE); sysb would be the name of the other computer and inc would be the shared directory.

      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