4

I've been trying to delete files having same extension by using labview.

I am using delete.vi to delete files like below.

enter image description here

But, I want to delete all files having same extension.

Imagine a folder like below.

enter image description here

Here, I would like to delete all files having '.MASTER, .jou, .IFPDAT, . f06, .f04, .DBALL' as extension.

I would like to make an automatic file delete function like below.

enter image description here

Would there be any good examples?

KKS
  • 1,389
  • 1
  • 14
  • 33

2 Answers2

4

The best way is to use "List Folder" with wild-cards (using "pattern" input) to get an array of files. Then you have to delete files one by one.

Khachik Sahakyan
  • 1,982
  • 15
  • 24
2

You can use System Exec.vi. Here's an example to delete all DXF files in a folder:

enter image description here

Drawback: portability

MarcoM
  • 1,093
  • 9
  • 25