Programmatically Get the Filename of the Currently Running Executable

Updated Aug 18, 2023

Environment

Software

  • LabVIEW

How do I get the filename of the currently running executable in the running program?

Retrieving the filename programmatically can be done using a property node. Follow the instructions below:
  1. Open an application reference by dropping "Open Application Reference" onto your block diagram.
  2. Wire the application reference to a property node.
  3. Change the property in your property node to Application > Name.
  1. Close the application reference by wiring the property node to a "Close Reference" node.
  2. Wire a string indicator to the App.Name output.