Page 1 of 1

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

Posted: Thu Jun 16, 2016 3:12 pm
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!

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

Posted: Fri Jun 17, 2016 4:36 am
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 viewtopic.php?f=2&t=4603 as well. That might open some lines of enquiry.