Link to home
Start Free TrialLog in
Avatar of nafa2221
nafa2221

asked on

Get Command Line Options

How could I get commandline options for example if I was to run my program like this

project.exe /a /s

how could I get the /a and /s?
Avatar of Motaz
Motaz

ParamStr(1) and ParamStr(2)

If you want to know the number of passed parameters use ParamCount

Azzoz
ASKER CERTIFIED SOLUTION
Avatar of Motaz
Motaz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial