Trying to run the following command using the Run DOS Command action:
“C:\Program Files\Java\jdk1.8.0_162\bin\jarsigner” -verbose …
Start in: C:\Program Files\Java
But I get the following error in FB 8.0.0.0.2370 (W10 Pro):
‘C:\Program’ is not recognized as an internal or external command
Using, for example, cd “Program Files\Java” in Command Prompt works as normal. Tried using %ProgramFiles%, but same issue. Is this a bug (unlikely I guess) or am I formatting or using the command incorrectly?
Andrew
Ok, from the Help I guess I should be using the Execute Program action instead? Still, the Run DOS Command action works if, for example, using instead:
“E:\Java\jdk1.8.0_162\bin\jarsigner” -verbose …
Thanks…Andrew
Specify the path in the “Start in” field, and just the executable name (or dos command) in the command field.
And yes, you should use the Execute Program action, as it runs the program directly rather than via cmd.exe
Thanks Vincent, using the Execute Program action fixes the issue.
Regards…Andrew