cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Passing Arguments to "Utility - Environment :: Start Process Read Stderr and Stdout" in Bl

lokasnega08
Level 2

Hi everyone,

I am trying to run a Python script from Blue Prism using the "Utility - Environment :: Start Process Read Stderr and Stdout" action. The script moves a folder into another folder.

What I Need to Do:

I need to pass the following arguments to my Python script:

  1. Python script file location (e.g., "C:\Users\babul\Favorites\Blue prism\Python scripts\Move Folder Inside.py")
  2. Source folder location (e.g., "C:\Users\babul\Desktop\Folder 1")
  3. Destination folder location (e.g., "C:\Users\babul\Desktop\Folder 2")

Problem:

I am having trouble figuring out how to correctly pass these arguments into the "Parameters" field. I keep getting syntax errors when running the process.

Question:

How should I properly format the arguments in Blue Prism so that Utility - Environment :: Start Process Read Stderr and Stdout executes the script correctly?

Any help would be appreciated! 

Thanks in advance! 😊 Screenshot 2025-03-05 155556.png

Screenshot 2025-03-05 155610.png

3 REPLIES 3

Nandhakumar
Level 7

Hi @lokasnega08 ,

Please find the parameters to be passed. Make sure the python is installed in the machine you are executing the process.

Process Name: "python.exe path"

Arguments: "Python script path"

Please try this and let me know.

Thanks,

Nandha

Hi Nandhakumar,

I appreciate your response.

My Python script requires user inputs, and I need to pass the paths for Folder 1 and Folder 2 as arguments for it to function correctly. How should I format these arguments when running the script?

Alternatively, is there a better way to pass inputs to the script for execution?

Looking forward to your suggestions.

Thanks,
Loka Snega

 

Hi @lokasnega08 ,

Yes, you can update the folder 1 & Folder 2 in the script file. please follow the steps below.

1. Store your python script in a EV.

2. During the run time, update the parameters folder1 and folder 2 as you wish and save the file as .py in a file path(c:\users\Move Folder_07032025.py) you wanto store.

Use: Utility - File Management and Action: Write Text File

3. Give this file path of python script as below,

Process Name: "python.exe path"

Arguments: "c:\users\Move Folder_07032025.py"

This will help you dynamically update the script and run your pyhthon script. try this and let me know.

The same can be achieved via powershell script as well.

Thanks,

Nandha