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