To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows how to select multiple files and acquire their file paths interactively from a selected directory. This VI not only allows a user to select files from single directory, it allows files to be loaded from different directories.
Description
This VI is designed to allow the user to choose multiple files and acquire their file paths interactively from different directories. The main VI (Get File Paths 2012 NIVerified.vi) uses the sub VI (Select Files From Directory.vi) to acquire multiple file paths of the files selected by the user. In order to implement this function into a program, the user will simply drop Select Files From Directory.vi on to the block diagram and connect the output terminal. The output of Select Files From Directory.vi is a reference (file path) to the selected files.
Requirements
Steps to Implement or Execute Code
Additional Information or References
File Selection Dialog Box
**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.
It would be nice if you could select multiple files at once on the left side of the dialog box and then just move them all over to the right side with one click.
Also, it would be nice if the right side of the dialog would refuse duplicate files, although this might be a problem if there were multiple files with the same name but with different data in them. Maybe you could just add a radio box saying "Refuse Duplicate Filenames" or something like that.
One last thing: there should be a 'Cancel' button.
Otherwise, it seems to work well and it looks good! Nice job and thanks for the handy subVI.
FYI, the File Dialog express VI allows mutilple file selection though not from different folders.