04-30-2013 05:27 AM
HI all,
I have an application in which I have to copy a file in a shared folder on a different PC over the same network. Can anyone suggest me How to do this?
04-30-2013 06:21 AM
Well, the easy approach is to generate the file locally and then use the COPY function to add the file to the network drive.
But there are some caveats:
- How do you make sure that you have the correct permission to write the file there?
- How do you make sure that the path to the shared drive is valid (e.g. mounted drive vs. absolute path)?
- How do you plan to react if the file already exists on the network drive?
hope this helps,
Norbert
05-01-2013 05:37 AM
Hi Norbert_B
thanks for your answer.
However apart from your described caveats I have on more
How to get acknowledgment when file has been written. Can you suggest som way?
05-01-2013 07:31 AM
@Aojha wrote:
Hi Norbert_B
thanks for your answer.
However apart from your described caveats I have on more
How to get acknowledgment when file has been written. Can you suggest som way?
You will typically get an error if the file was not written. But I want to say I ran into a situation where it didn't. Can't remember. Just check for an error on the copy.
05-13-2013 03:06 PM
Hi guys,
I'm trying to figure it out as well. I need to give a password before copying files, how can I do it in labview?