LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bypassing the replace prompt when replacing a file that already exits

I want to bypass the "replace prompt" when replacing the file I know already exits.  In the program when I ask it to replace 1 file I know it needs to replace several other different files.  I just want one original promt to replace the file and all other to be bypassed and just have the program replace the file without a promp.  The program uses several "write characters to file" vi and several write to spreedsheet file" vi.
0 Kudos
Message 1 of 3
(3,010 Views)
you can edit the write to spreadsheet and write characters nodes, they are plain VIs. 🙂
 
Now simply wire a False diagram constant to the advisory dialog input of the open/create/replace node in each of the two mentioned VIs. Giive them a different icon (e.g. change the background color) and save them under a new name elsewhere. Save them in user.lib and they'll even show up in the user palette. 🙂
 
 
0 Kudos
Message 2 of 3
(3,007 Views)

I wrote a small tool to do this requent task. This VI effectively makes a backup of an existing file and then deletes the file. In this way you can be sure that you will not get the replace dialog. It is in the Open LabVIEW Libraries index at http://bloghan.gotdns.org/OpenLVLibs/index.php

John


0 Kudos
Message 3 of 3
(2,995 Views)