04-27-2022 10:18 AM
Hello all,
I have been trying to understand this VI, but I I am unable to. 'Arguments array' output is always empty. I went through the Help file, but I felt any examples makes me understand the implementation/purpose of this VI better. Can anyone share examples/the use cases of this VI. Thank you.
with regards
Adithya
04-27-2022 11:48 AM
It only does something if you start the executable with command line arguments.
The executable is LabVIEW.exe, or your build application.
04-27-2022 01:27 PM
Note also that if you build an application, you'll need to check a box in the build spec to explicitly *enable* command line arguments to be accessed by your program. This box is *unchecked* by default
-Kevin P
04-28-2022 03:14 AM
As a bonus, if you want to act on files being dropped on the executable while it's running, use OS Document Open and OS Document Open? events.
One of those will be triggered when a document is passed when starting the exe, the other is triggered when you drop a file on the exe or a shortcut (in Windows Explorer). These events don't require the flag in the build to be set.