Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Unable to execute process using batch

As mentioned in the post below, Use the CMD command to run the process, but I can't run it from the command line in a .bat File.


https://support.softomotive.com/support/solutions/articles/35000088681-controlling-winautomation-from-the-command-line


.bat File Code:


 

cd "C:\Program Files\WinAutomation"
WinAutomation.Console.exe /start "/My Processes/New Process"

 

Any suggestions are welcome, thanks in advance


Best Answer

Match extra quotes like below:


""C:\Program Files\WinAutomation\WinAutomationController.exe" /start "/My Processes/New Process""



Answer

Match extra quotes like below:


""C:\Program Files\WinAutomation\WinAutomationController.exe" /start "/My Processes/New Process""


 I tried a lot of command line arguments in .bat File, and it didn't work, for example


cd "C:\Program Files\WinAutomation"
WinAutomationController.exe /enable "/My Processes/New Process"

 

 

cd "C:\Program Files\WinAutomation"
WinAutomationController.exe /disable  "/My Processes/New Process"

 

I need to double-click the .bat file to execute the process. However, after many tests, I can't succeed. I hope the developer can verify it. This is a very useful feature. Thanks in advance.

I saved your code as a .bat file and the running process still didn't work.


.bat File Code:


 

start WinAutomationController.exe /start "/My Processes/New Process"

or:

start WinAutomationController.exe /start "/My Processes/New Process"

or:

start  "C:\Program Files\WinAutomation\WinAutomation.Console.exe" /start "/My Processes/New Process"

 

ADMIN

Hi Abbyy,


The command in that batch file should be:


WinAutomationController.exe /start "/Processes/../.."




Login or Signup to post a comment