Page 1 of 1

How to my exe output have options when run it in commandline mode

Posted: Tue May 14, 2024 6:59 am
by hoangdiemtinh
I'm new to PB.
My primary language is not US/UK. I am using Google Translate.
I'm looking for a way to make the exe file I'm writing to run in commandline mode.
Someone give me some advice. Make the exe have options (parameters) when running commandline.
Thanks.

Re: How to my exe output have options when run it in commandline mode

Posted: Tue May 14, 2024 8:16 am
by mk-soft
Menu -> Compiler -> Compiler Option -> Set Executable Format to Console

See PB-Help OpenConsole
See PB-Help Process Index -> Programm Parameters and CountProgrammParameters

Re: How to my exe output have options when run it in commandline mode

Posted: Tue May 14, 2024 8:31 am
by hoangdiemtinh
Thank for your advice.

My EXE is a window form. Is there any way to add commandline mode (add parameters...) to the form ?

Re: How to my exe output have options when run it in commandline mode

Posted: Tue May 14, 2024 9:51 am
by mk-soft
ProgramParameters work with window forms too