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

Everything else that doesn't fall into one of the other PB categories.
hoangdiemtinh
User
User
Posts: 97
Joined: Wed Nov 16, 2022 1:51 pm

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

Post 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.
PC: Windows 10 x64, 8GB RAM. PB ver: 6.x
--
I love PB5 vs PB6 :)
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
hoangdiemtinh
User
User
Posts: 97
Joined: Wed Nov 16, 2022 1:51 pm

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

Post 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 ?
PC: Windows 10 x64, 8GB RAM. PB ver: 6.x
--
I love PB5 vs PB6 :)
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

ProgramParameters work with window forms too
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply