Archive: Help with Strings


Help with Strings
Hi

I need to execute a program with the following parameters.
someProg.exe [/PATH Path] [/LM] [/S]

I have tried a few times messing around with different formats of strings but can't get anything to work. Here's a concrete example of what I'm trying to achieve.


ExecDos::exec /DETAILED `"$INSTDIR\someDire\someProg.exe" /PATH $INSTDIR\somedir /LM /S'


Cheers,

Paul

Try putting quotes around Path as well.

Stu


Thanks but I've found the problem. The first quote is a ` and not a '.

Thanks for the reply though.

Cheers,

Paul


Just found out that I also need to add quotes around the Path as in:

[code]
ExecDos::exec /DETAILED '"$INSTDIR\someDire\someProg.exe" /PATH "$INSTDIR\somedir" /LM /S'
[code]

So thanks again.

Cheers,

Paul