Skip to main content
Kofax

Roboserver Error: Error from the Execute Command Line action. Cannot run program "cmd.exe": Malformed argument has embedded quote:

3025502

Question / Problem: 

If I try to run a Execute Command Line step which runs the cmd.exe in a robot on MC I receive an error message like:

Error from the Execute Command Line action. Cannot run program "cmd.exe": Malformed argument has embedded quote: MOVE /y "C:\temp\testfile.txt" "\\localhost\Share\\test.txt"

Answer / Solution: 

This issue was seen when running the robot on a Roboserver which is installed as Windows Service.

It can be solved by adding the following line to the RoboServer.conf file in the bin folder of the RPA installation.

wrapper.java.additional.20=-Djdk.lang.Process.allowAmbiguousCommands=true

Afterwards the Roboserver service needs to be restarted.

 

Applies to:  

Product Version
RPA 11