Restored from previous forum. Originally posted by TerryHough.
In PureBasic is it possible to capture the "command tail" parameters passed to the program upon launch?
Example:
dotthis.exe /Q or
dotthis.exe type1 type2 type3
and then parse the "command tail" to determine the proper action of
the program?
Thanks,
Terry
Launch program with switch or "command tail"
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by ebs.
Terry,
Use the ProgramParameter() function to get each command line parameter, until it returns an empty string.
Eric
Terry,
Use the ProgramParameter() function to get each command line parameter, until it returns an empty string.
Eric
Originally posted by TerryHough
In PureBasic is it possible to capture the "command tail" parameters passed to the program upon launch?
Example:
dotthis.exe /Q or
dotthis.exe type1 type2 type3
and then parse the "command tail" to determine the proper action of
the program?
Thanks,
Terry
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> In PureBasic is it possible to capture the "command tail"
> parameters passed to the program upon launch?
Yes, with the ProgramParameter command. See here for an example:
viewtopic.php?t=1893
PB - Registered PureBasic Coder
> In PureBasic is it possible to capture the "command tail"
> parameters passed to the program upon launch?
Yes, with the ProgramParameter command. See here for an example:
viewtopic.php?t=1893
PB - Registered PureBasic Coder
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm