LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to copy or move multiple files at once?

Hi all

Just curious if anyone has a good way of copying several files quickly...

I am using the utility library functions CopyFile and DeleteFile in a loop (along with Fmt to specify the paths) to copy a bunch of files (from a directory on a network drive to another directory on the same network drive) and this runs sloooww

There has to be a better way ,,,,or maybe a function that copies/moves several files at the same time 😉  Copying the same files via drag and drop in Explorer is quick!

Thanks
0 Kudos
Message 1 of 2
(3,286 Views)

Are you using functions from the Utility library or from Windows SDK? I'm asking you because functions from the utility library accept standard wildcard characters '?' and '*' so you may be able to group files with similar filenames and process them in a single call.

Another hint could be to test SDK MoveFile function: it is possible that this function is faster than copying to a new file and deleting tha old one after. I never tried it but it may worth a try.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,280 Views)