Struggling with command-syntax...
Posted: 02 Mar 2016 11:45
Despite RTFM'ing, I'm not getting it
(
I'm struggling with the correct format to set up a command to run on a user-button. when the name of the executable contains spaces.
For example, I have a file "patch (Classic).exe" in <xyscripts> that I'd like to call.
So I've setup the script as:
which looks quite right according to the doc of the "run"-command. Also when I paste just <xyscripts>\patch (Classic).exe into the commandline, it executes fine.
But when I trigger the user-command I get an error:
I'm struggling with the correct format to set up a command to run on a user-button. when the name of the executable contains spaces.
For example, I have a file "patch (Classic).exe" in <xyscripts> that I'd like to call.
So I've setup the script as:
Code: Select all
"Patch (Classic)" run '"<xyscripts>\patch (Classic).exe"'which looks quite right according to the doc of the "run"-command. Also when I paste just <xyscripts>\patch (Classic).exe into the commandline, it executes fine.
But when I trigger the user-command I get an error:
When replacing the blank with _, it works nicely. But I'd like to understand what I'm doing wrong...?Das System kann die angegebene Datei nicht finden.
File: "<xyscripts>\patch (Classic).exe"
Parameters:
run
"<xyscripts>\patch (Classic).exe"