I have the following code:
Run, %pPath% -profile %profilePath% -new-tab "about:config"
I need to wrap the two variables (i.e. pPath and profilePath) in quotes without breaking the variables and turning them into literal strings.
How can I do this? I've tried countless different ways but I couldn't get any of them to them work.
Wrapping a variable's output in quotes Topic is solved
- JoeWinograd
- Posts: 2214
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: Wrapping a variable's output in quotes Topic is solved
You'll kick yourself when you see this wayLem2001 wrote:I've tried countless different ways
Run, "%pPath%" -profile "%profilePath%" -new-tab "about:config"
Regards, Joe
Re: Wrapping a variable's output in quotes
The kicking of self is underway even as we speak!
I could have sworn that this was the very first thing I tried (it's the most intuitive and it's how I naturally assumed that it would work).
However, for some reason the code that I used ended up displaying the name of the variable rather than expanding it to show the value. I then went down a rabbit hole of trying to find workarounds (which unsurprisingly failed dismally, as I had no idea what I was doing).
I'm relieved to see that it's such a simple solution.
Thanks for your help.
- JoeWinograd
- Posts: 2214
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: Wrapping a variable's output in quotes
Exactly! Probably a simple typo on your first try that you led you astray and down that deep rabbit hole. Welcome back to the surface. Cheers, JoeLem2001 wrote:it's the most intuitive and it's how I naturally assumed that it would work