Help with Passing Arguments to "Utility - Environment :: Start Process Read Stderr and Stdout" in Bl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-03-25 09:06 PM
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:
- Python script file location (e.g., "C:\Users\babul\Favorites\Blue prism\Python scripts\Move Folder Inside.py")
- Source folder location (e.g., "C:\Users\babul\Desktop\Folder 1")
- 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! 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-03-25 08:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-03-25 01:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-03-25 02:34 AM - edited 07-03-25 02:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-03-25 04:35 PM
Thank you for the detailed steps! That makes sense. I will try updating the script using the method you suggested.
Appreciate your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-03-25 08:43 AM
