Passing Arguments to a PB program?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pl0nk0r.

Hi, as a newbie im sure this will be an easy one for the PB Guru`s

I would like to know if it is possible to pass arguments to a PB program?

ie.

program arg1 "argument 2 is here" arg3

thanks in advance for any response
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

>I would like to know if it is possible to pass
>arguments to a PB program?
[...]
>program arg1 "argument 2 is here" arg3

Sure,
just open a console and do it.
(or write a batch file)

cya,
...Danilo
PS: look at ProgramParameter() under MISC in the PB-Help...

(registered PureBasic user)
Post Reply