How to add a variable as custom launch option?

0

An error occurred when I used a system variable I set like this:

"C:\Program Files (x86)\Exampleapp\examplefoleder\Example.exe"%variable%

Imran

Posted 2019-11-12T19:49:04.457

Reputation: 1

what happens when you insert a space after the last quote, immediately before the % – Yorik – 2019-11-12T19:49:53.083

"An error occurred " - What error exactly? Instead of submitting a comment, edit your question, so an proper detailed answer can be submitted. – Ramhound – 2019-11-12T20:00:45.173

Answers

0

The error you are getting is most probably something like:

enter image description here

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.

harrymc

Posted 2019-11-12T19:49:04.457

Reputation: 306 093