pgg1
15th August 2007 10:45 UTC
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
Afrow UK
15th August 2007 11:19 UTC
Try putting quotes around Path as well.
Stu
pgg1
15th August 2007 11:31 UTC
Thanks but I've found the problem. The first quote is a ` and not a '.
Thanks for the reply though.
Cheers,
Paul
pgg1
15th August 2007 11:49 UTC
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