Page 1 of 1
Running an application with command line parameters
Posted: Sun Aug 30, 2009 2:05 pm
by SFSxOI
How do you build in the ability to run a PB application with command line parameters?
i.e...
some.exe / do something / and do this
?
Posted: Sun Aug 30, 2009 2:18 pm
by srod
Any parameters passed to your application by the command line are accessible through ProgramParameter() etc. It doesn't need to be a console application for it to read these parameters.
Have I misunderstood?
Posted: Sun Aug 30, 2009 4:24 pm
by Arctic Fox
RunProgram(Filename$,
Parameter$, WorkingDirectory$, Flags, SenderProgram)

Posted: Sun Aug 30, 2009 4:54 pm
by SFSxOI
well, I created a small .exe that I want to be able to run with parameter switches to enable various options when it runs. So I need the .exe to be able to accept these parameters in the shortcut for it.
my_program.exe / parameter
@Artic Fox; yep I know about that one, but i'm not running another .exe.
Posted: Sun Aug 30, 2009 5:02 pm
by Kaeru Gaman
Posted: Sun Aug 30, 2009 6:25 pm
by SFSxOI
Thats it! Thanks Kaeru Gamin

Posted: Sun Aug 30, 2009 6:31 pm
by Kaeru Gaman
srod already mentioned it, maybe you just overlooked it...
Posted: Sun Aug 30, 2009 7:40 pm
by SFSxOI
yes i did, scrolled right past it, sorry srod, thank you also
