How to insert the value of a variable as a command line parameter?

Got a problem you cannot solve? Try here.
Post Reply
jessican
Posts: 29
Joined: Fri May 13, 2016 9:01 am

How to insert the value of a variable as a command line parameter?

Post by jessican »

Hi! So basically I have a variable holding the line that I would like to run when cmd.exe opens..

I tried using $(VariableName)$ and it didn't work.. I dont think just typing in the variable name works either.

Thanks!
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: How to insert the value of a variable as a command line parameter?

Post by bokkie »

Try using $VariableName$

I don't know if you used the parentheses literally but variable names are referenced between $ symbols. Did you try displaying the value of the variable in a message box? That'll quickly confirm if the variable contains what you think it should contain.

Edit: Take a look at this http://www.installaware.com/forums/view ... f=2&t=4603 as well. That might open some lines of enquiry.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Post Reply