To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This vi will display a folder path in windows explorer by using system executive.
Description
This vi will programmatically use System Executive to display a folder in Windows Explorer. It uses the file path selected by user and converts to a string which is passed to system exec.vi with the command "explorer <folder path>"
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.
That won't work, you should replace the "empty string" with "space constant". Cheers.
Thanks Hex. Slight mis-hap when cleaning up this vi for the community! - Have updated
Hehe, no problem. I just got real lucky
Works in Vista. Thanks very much for your vi.
Another nice option here is the ability to select a file in the opened folder. This can be achieved by adjusting the command with the select switch:
explorer /select,c:\test\hello.dat
' will for example open an explorer window showing c:\test, with the hello.dat file selected.
Is there any way to select multiple files?