Hi gang
New to PB - coming from VB and C++.
How can I pass command line arguments to a PB program compiled as a console, or non-GUI exe, platform independent (I can figure out Mac and Linux) from here:
"C:\Program Files\xyz.exe 4, 5, D:\abc.ini, D:\cba.txt"
The first command line argument is "4", the second is "5".
The PB procedure performs addition (arg 1+ arg 2)
and the last argument is the "new file path" to save the renamed/output of the procedure.
Winner for least lines of code wins! haha
Cheers
Tai
Command Line Arguments Example
Command Line Arguments Example
Last edited by Taishan on Thu May 11, 2023 8:16 pm, edited 3 times in total.
Re: Command Line Arguments Example
ProgramParameter()
Re: Command Line Arguments Example
CountProgramParameters() to get the count and validate that it's correct, and ProgramParameter(Index) to get the parameter at each index. You can find both these functions under the Process section of the library documentation 

Re: Command Line Arguments Example
Thanks jassing and Quin. Glad to see programmers with a sense of humor! 
