How to start tomcat using UIPath

Hi,

I was tying to start ‘startup.bat’ file from tomcat folder using UI path. All I could manage is open command prompt by using ‘Start Process’ and provinding cmd.exe file name like "“C:\Windows\System32\cmd.exe”.

Is there any way to open command prompt direct from tomcat location and start the tomcat.bat file directly.

Thanks,
Prasad Patil

You can use Start Process activity for starting up the tomcat.

We need to run the startup.bat file will be one of the ways to start tomcat.

Input for Start Process

  1. FileName - bat file path
  2. Working directory - bat file directory

Refer from the below sample workflow.
Main.xaml (5.9 KB)

FYI - Powershell can also be used to do the same as above.