Example Code

Send Files to Recycle Bin or Delete permanently Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows a quick way to use the invoke node of File System to delete file.


Description
This example shows how to use the FileSystem.DeleteFile Method (from the Microsoft.VisualBasic.FileIO class) to send files to the Recycle Bin. You can also Delete Files permanently if you need to.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Select the file path and options to delete.
  • Run the program

 

Additional Information or References
VI Snippet

2-269.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.