LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for 5.1 version of the VI "copy a file without error if the file exists"

If you use the standard VI copy then the function isn't executed if the file already exist. There's an example on the NI site that perform the copy disregarding if the file exist (without error)but it's only for version 6.0 and 7
0 Kudos
Message 1 of 3
(2,767 Views)
The way this is done,

Check If the file exists

If it exists, then delete it first, then perform the standard copy
Message 2 of 3
(2,767 Views)
You can use the delete file function with the target path befor you copy
the file, so you make sure that the file does not exist.

snauwaea wrote:

> If you use the standard VI copy then the function isn't executed if
> the file already exist. There's an example on the NI site that perform
> the copy disregarding if the file exist (without error)but it's only
> for version 6.0 and 7
Message 3 of 3
(2,767 Views)