LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to overwrite a file without need to confirm ?

Is there someone that can help me ???

I need to find one way to overwrite a *.tmp file, without need to confirm every time I run my program.
If any one have something I can try, please mail to apaulsen@network-electronics.com
0 Kudos
Message 1 of 9
(2,756 Views)
Hi, Clio

I would like to help you but I need some more information.

1. What version of labview are you using.
2. How are you opening the file. (ie high level vi, or low level)
3. What OS are you using.

If you are using the open create replace dialog box then there is an input to that called advisory dialog set this to false. If you are not using this please post more details.

If I were you I would not post my e-mail address, as these posts are read by thousands of people all over the world.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 9
(2,747 Views)
1. What version of labview are you using.
Labview 7.0

2. How are you opening the file. (ie high level vi, or low level)
Write Characters To File

3. What OS are you using.
Windows 2k and XP

Hopes this can help you a bitt

AWP
0 Kudos
Message 3 of 9
(2,743 Views)
Now we should be able to do this easily. all you have to do is open the write characters to file vi. Save it as a new name, then go to the block diagram and you will see the open create file vi and then all you have to do is wire a false to the advisory dialog input.

Just to add another thing, why do you not use the write to spreadsheet vi. there are instuctions inside this vi on how to modify it to take in strings. this would help clean up your code a little bit by not having the use the spreadsheet array to tab delimited string function.

let me know if this helps or does not solve your problem.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 9
(2,729 Views)
Hello jhoskins

Your tips was fine. All work perfect.

I Have taken over this prodject so any tips are welcome. I will look into this "write to spreddsheet.vi".

Thank you for all your time and tips

Best reg

Aleksander
0 Kudos
Message 5 of 9
(2,707 Views)
when i faced the same issue, all i did was delete the existing file using the delete file function and write to a new file with the same filename and same path. i dont know if this is the right way of doing it , but it worked out for me. All i had to do was delete the file before overwriting to it.


Bhaskar:)
0 Kudos
Message 6 of 9
(2,683 Views)


@Bhaskar wrote:
when i faced the same issue, all i did was delete the existing file using the delete file function and write to a new file with the same filename and same path. i dont know if this is the right way of doing it , but it worked out for me. All i had to do was delete the file before overwriting to it.


Bhaskar:)




@Bhaskar wrote:
when i faced the same issue, all i did was delete the existing file using the delete file function and write to a new file with the same filename and same path. i dont know if this is the right way of doing it , but it worked out for me. All i had to do was delete the file before overwriting to it.


Bhaskar:)


Yes that is possible, but can you delete one file whitout any questions asked.
I'm running automatic test programs, and needed to overwrite these files automatic.

There was no problems when using Joe's idee. Perfect

AWP
0 Kudos
Message 7 of 9
(2,665 Views)
Hi

yes, it does delete the file without aking for any confirmation.
i have checked it out.

Bhaskar
0 Kudos
Message 8 of 9
(2,659 Views)
There is no sense in going back an forth on which way works the best, but I see no reason to delete the file first then write another file of the same name. Just let windows take care of deleting the file before it is written. As long as the way you have things works for you and it makes sense to you to do it that way then hey I say do it.

Every way is the best way if it makes sense to you.

Have fun with labview, experiment with and most of all have FUN!!!! Programming.



Joe.
"NOTHING IS EVER EASY"
Message 9 of 9
(2,650 Views)