ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File delete

Solved!
Go to solution

Hello everyone,

 

         In my vi i have used write to spreadsheet and read from spreadsheet to create a file or edit file. Now i would like to add one more feature i.e delete a file.

 

Requirement:  I should have a combo box where list of files whatever i have is listed out. i will be keeping a button named delete. when i press delete button, file selected in combo box must be deleted.

 

How can I do that? any idea? 

Thanking you,
Sushmith
0 Kudos
Message 1 of 3
(4,586 Views)

This was created by me long ago.

 

it will need some modifications.

0 Kudos
Message 2 of 3
(4,575 Views)
Solution
Accepted by sushmith_ks

Attached something to get you started. If you have any questions or concerns regarding this feel free to ask 🙂 In this example is simply listed contents of a folder and stored paths and filenames in a key-value pair (by bundling) and added them as an options to combo box. When "delete" button is pressed, event fires and deletes selected file.

0 Kudos
Message 3 of 3
(4,568 Views)