Run EXE in background

How to make for EXE application run in background in WIndows 10?
I use RPA.Windows.Windows_Run(‘application.exe’) in Python script.

Hi, can you provide more details about the use-case? Like:

  1. Does the current solution you have suit you already?
  2. Do you want to also minimize the window or have it hidden?
  3. Would Open Application (RPA.Desktop) help you more in this case? (if the above isn’t enough)

Usually these keywords aren’t blocking, so you can open the app and then have the robot logic continue its flow. Additionally, we also support the following:

  • Run (OperatingSystem)
  • Run Process (Process – better configuration support)

Don’t forget to close the window/app at the end:



Dear Cosmin

Python script runs normally, the problem is that the application runs on a server where other people access it.
The task in Windows, for the execution of this robot, is executed every 5 minutes, so, as there are other people accessing the server, the execution of the robot should not appear, that is, the execution should be hidden, but this is not happening.
I don’t know if I could explain it for you to understand.

1 Like

I understand it now, so the best option would be for the app itself to support being run in some sort of “headless” mode (so no window displayed) through an executable parameter you can pass while running it with either Open Application or Run Process.
If the app doesn’t support such parameter (which you have to research about and test manually first), you can try minimizing the app as soon as it starts with Minimize Window. (but that will still show it in the taskbar)

If you still have trouble with it, you can share with us the app if possible so we can look into a solution together.

Create a .bat file to run and place this code, changing it to your project path.


rem Insert the bot path
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start “” /min “%~dpnx0” %* && exit

cd C:\Bots\Bot1\Project
rcc run -e devdata\env.json


Create Folder devdata and file env.json in Visual studio Code.


1 Like

Thanks JSantana.
I will try to run it this way.

Sorry, but, what should be the contents of the env.json file?

After exec : rcc run -e devdata\env.json
This message :
Traceback (most recent call last):

  • File “C:\projetos\Python\resetar_senha_apps\”, line 11, in import conn*
  • File “C:\projetos\Python\resetar_senha_apps\”, line 5, in import cx_Oracle*
    ModuleNotFoundError: No module named ‘cx_Oracle’
    Error: exit status 1


“RPA_WINDOWS”: “RPA.Windows”


Run Python:
shell: python

condaConfigFile: conda.yaml
artifactsDir: output

  • .
  • .
  • .gitignore

Just to clarify, environment files (env.json) are development time option to simulate production like settings (to provide environment variables to executed robot process) in development work (for example in VS Code). They should not be used in real production as Control Room/Workforce Agent runs provides those environment variables.

And content of env.json is just “key/value” pairs, that rcc will inject into robots execution environment before starting actual robot run.

Can you provide your conda.yaml and also tell, what should be providing that cx_Oracle module? Is this self-made module, or should some dependency bring that in?

Thank you to everyone who, in some way, gave some of their time to help me.
The robot is running as follows: I created another user on the server and established a remote connection to this server, I left the session open with a small portion of the window open.
It is running so far.
cx_Oracle package is owned by Oracle.
It is an Oracle database connection package.

Thank you very much.