An error occurred when I used a system variable I set like this:
"C:\Program Files (x86)\Exampleapp\examplefoleder\Example.exe"%variable%
An error occurred when I used a system variable I set like this:
"C:\Program Files (x86)\Exampleapp\examplefoleder\Example.exe"%variable%
The error you are getting is most probably something like:
This is because if variable
contains, for example, the value of file.txt
the command after substitution will look like:
notepad.exefile.txt
Windows will not be able to find a file named notepad.exefile.txt
.
To fix this, leave a blank between the executable and its argument.