LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

move file pb

hello,

I am trying to move files from a directory to another but i have sometimes an error because files i want to move

can be used by another application or not complet due to recording, how can i detect this type of status before attempting to move ?

Best reagrds

Tinnitus






CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 5
(3,129 Views)

Hi tinnitus,

i think you can try to open it with read and write access. If you get an error it is already opend by another application.

Mike

0 Kudos
Message 2 of 5
(3,127 Views)

I've seen this under Vista, and the only way to enable moving them was to
close and restart LabVIEW.

No solution though. Are you using Vista?

Regards,

Wiebe.


0 Kudos
Message 3 of 5
(3,123 Views)
tanks for read file tips , i will try ,

about windows , Xp for the moment ...


best regards

Tinnitus





CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 5
(3,116 Views)
Hi Tinnitus,

You can note down the error code you receive when you try to move the file which is already in use.

Then modify your code to include error handling. Since you know the error code, you can compare the error code in your error cluster to check if the file you are trying to move is already in use by another application.
0 Kudos
Message 5 of 5
(3,104 Views)