How to move a file
-
Hi, I want to move a file in my system to a remote system. For example I have a file "abc.wav" in my system . Now I want to move this file to another remote system's subdirectory(say "c://xyz"). IP of the remote system say "1.2.0.4". Can anyone help me. Thanks in advance.
-
Hi, I want to move a file in my system to a remote system. For example I have a file "abc.wav" in my system . Now I want to move this file to another remote system's subdirectory(say "c://xyz"). IP of the remote system say "1.2.0.4". Can anyone help me. Thanks in advance.
use sockets for that purpose with file reading,u will find the code on code project as well just search "Network Transfer of File". thing u had to do is read a file from computer and send to another using sockets where other side will receive and then write on file in this way the transfer will take place.
Tasleem Arif
-
Hi, I want to move a file in my system to a remote system. For example I have a file "abc.wav" in my system . Now I want to move this file to another remote system's subdirectory(say "c://xyz"). IP of the remote system say "1.2.0.4". Can anyone help me. Thanks in advance.
you could also attach to a share on the other machine eg \\1.2.0.4\c$\xyz either programmatically or through a script to map a drive, then copy the file there using copyfile() bit lower tech than using the socket suggestion ... 'g'
-
Hi, I want to move a file in my system to a remote system. For example I have a file "abc.wav" in my system . Now I want to move this file to another remote system's subdirectory(say "c://xyz"). IP of the remote system say "1.2.0.4". Can anyone help me. Thanks in advance.
What about
MoveFile()
orSHFileOperation()
? If neither of them accepts a UNC path, you can make useNetUseAdd()
to map a drive letter to the remote share.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb