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

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

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

Postby jessican » Thu Jun 16, 2016 3:12 pm

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?

Postby bokkie » Fri Jun 17, 2016 4:36 am

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 viewtopic.php?f=2&t=4603 as well. That might open some lines of enquiry.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 139 guests