Trigger Executable File in Windows from Deployed Dash App


I have a UiPath BOT whose .exe file lives in the “Program Files” directory of my Windows computer. I would like to trigger the Bot to run using a callback in a deployed dash app (Deployed on Heroku). I’m able to achieve this in local dev using a callback with the following script:

import subprocess
import os

BOT_NAME = “automation_name”
UIPATH_ASSISTANT = r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\UiPath\UiPath Assistant.lnk"
subprocess.Popen([“C:\Program Files\UiPath\Studio\UiRobot.exe”, “execute”, “–process-name”,"BOT_NAME "])

The above does not work once I have deployed the application. Any ideas how I can fix this?

Hello @kbally,

This is correct. The server does not have access to your computer once hosted, it only has access to the server, unless you were to share it via a local network share.

But the application would still be running on your server rather than your computer.

To run something on your local computer, you’d need a counterpart to listen to a db to see if there are any updates that you would need to run it on your computer.

I’m sure there are other ways, but triggering directly from your browser is something that most browsers will frown upon.

You could potentially have a path where you click on a link that navigates to your folder in the browser window.

1 Like