03-25-2011 06:57 PM
Hi All,
I am trying to copy a file from a computer (where I have CVI program running) to another computer on the same network. How should I be doing it ? Should I use socket functions library provided by C or is there any other library available in labwindows?
Thanks,
Kanu
Solved! Go to Solution.
03-26-2011 02:46 AM
CopyFile ( ) in the Utility library accepts UNC pathnames, so you can do something like this:
CopyFile ("myfile.txt", "\\\\remotePC\\remoteFolder\\myfile.txt");
Care must be taken to avoid conflicts between this function and the corresponding Windows API function with the same name: read the online help for explanations.
Simpler is better, don't you think?
07-07-2015 04:19 AM
hello sir im trying this one its giving -1 value its nothing but File not found or directory in path not found.pls help me
07-07-2015 04:37 AM
A few question to permit understanding what's happening:
Is the source file present in the given folder?
Is the target folder availble for writing (i.e. there is no network constraint)?
Can you post the relevant code?