10-02-2014 08:44 AM
I know how to do this. My question is why this has to be enabled in the build settings. There must be a good reason for it to not be enabled by default.
The application I wrote takes a config.ini file as a command line argument. Using the Windows file explorer, I can drag and drop the .ini file onto the application and the app runs, using that .ini file. Prior to setting the 'Pass all command line arguments to application' switch in the build settings, when I dropped a .ini file on my app icon in the File Explorer, the app would open and the .ini file would open in my text editor (notepad).
10-02-2014 09:06 AM
Hi Les,
There must be a good reason for it to not be enabled by default.
I guess it's because you (usually) create executables designed for a GUI with LabVIEW. When you want to use features of (basic, old fashioned) command line tools you need to enable them…
10-02-2014 12:51 PM
Relatively very few programs out there actually do use the command line arguments. So why add the extra overhead if 99% of the programs don't need it?
10-02-2014 01:06 PM
@crossrulz wrote:
Relatively very few programs out there actually do use the command line arguments. So why add the extra overhead if 99% of the programs don't need it?
I agree that very few programs use it. Does it really add overhead? And why the unexpected behavior I described?
10-02-2014 01:16 PM
Seems expected to me. What would happen if you put C:\myapp c:\config.ini into a command line if your app did not accept arguments. Well, then that is two different applications trying to open. What is the default program to open an ini file with? Notepad.