in reply to Using system to run exe on Windows and pass it variables

Single quotes do not allow for interpolation of variables. Use double-quotes instead.

Also, please edit your question and wrap your code within <code></code> tags per How do I post a question effectively?. As you can see, it's very hard to tell where your code is in your post, and it doesn't render correctly.

Replies are listed 'Best First'.
Re^2: Using system to run exe on Windows and pass it variables
by trmn8tr (Initiate) on Sep 15, 2016 at 19:34 UTC
    OK, I updated my code and pasted my code back into the original post. This executes just fine, no errors. Just will not pass variable values. I tried double-quotes instead of the single quotes but this fails. Note that I declare all of the variables in the code, but I only need to pass specific ones to my remote script.