LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Geting info that file is in use

I want to make program that collect files (copy and move) from different network computer. Problem is if some file is open or in creation phase.
So how to get information if file is in use.
 
Thanks
0 Kudos
Message 1 of 5
(2,880 Views)
Hi Oldi
What kind of files are you transfering? If it's a MS Office file (liek excel or word) you could use ActiveX.
 
Regards Andreas

Message Edited by Klump on 03-14-2007 03:01 AM

There's three different kinds of people, those who can count, and those who can't.
0 Kudos
Message 2 of 5
(2,867 Views)

No, it's a txt .log file and some .bmp picture. All that files is from production line.

.log is result of some c++ test SW and it take few minute from creating to finished.

With LabView I want to collect these file for product repair on another micro location and to meke statistic.

Message Edited by Oldi on 03-14-2007 03:07 AM

0 Kudos
Message 3 of 5
(2,864 Views)
Oldi,

If you use the Open/Create/Replace File function and set the access parameter to read/write or write-only, the function will return Error 5 if the file is already open by another application.  I think that other functions, such as Move File or Delete File will give similar errors.  So use good error handling to check for certain errors and handle them accordingly.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 4 of 5
(2,850 Views)

Thanks.

I get same idea a moment after last post Smiley Happy

0 Kudos
Message 5 of 5
(2,831 Views)