PDA

View Full Version : How to extract command line parameters



NewsArchive
06-13-2012, 01:23 AM
Hi Friedrich,

before I start to develop my own script, I ask for ideas or an already
existing solution.

If I start my setup like this:

setup.exe /abc /xf ab|c /yz "123/123"

I have 4 parameters

/abc

/xf with value ab|c

/yz with value 123/123

Because of the "|" character and the "/" between the "", i can't use the
simple "split string" soultion.

Any suggestions?

Thanks for your answer.

Markus

NewsArchive
06-13-2012, 01:24 AM
Of course "3 parameters"...

Markus Zander

NewsArchive
06-13-2012, 01:24 AM
Markus,

>
> Any suggestions?
>

I have developed a (VERY) quick-and-dirty demo:

http://www.lindersoft.com/projects/extract_cl.zip

To retrieve the "real" command line from a setup.exe, comment-out Line 27
and comment-in Line 28.

Friedrich