LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy file

Hi
 
In my Labview application, i copy a network file on the local hard drive where my application is located.
 
It works well but i don't know during copy where the progress is (i copy huge files about 100Mo).
 
So i would like to display a progress bar during copying like windows explorer does it for example.
 
Is it possible?
 
Thanks for your help
0 Kudos
Message 1 of 4
(3,873 Views)
You have to build such a thing yourself.
So you read one file and write another file, test with various blocksizes (at least in multiples of 512 bytes) for the best speed. But I don't think you get the same performance as the OS copy function.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(3,867 Views)
Hello,

It not possible to it directly, but I found somethng that could help you in the right direction.

Quote from a VB forum:
"What I'd recommend is to do the copy "manually".
That is, open input and output files as Binary, and use Get/Put to transfer a nice large chunk at a time.
That way, you can do a progress display.
The larger the chunks, the faster the transfer"

You will have to get the file size before transfer to calculate the progress.

Regards,

André
Regards,
André (CLA, CLED)
Message 3 of 4
(3,865 Views)

Hi

Thanks for your help

I'm gonna try this

0 Kudos
Message 4 of 4
(3,776 Views)