[Python] Call Blue Prism process with Python

Discussão em 'Python' iniciado por Stack, Julho 16, 2025.

  1. Stack

    Stack Membro Participativo

    I want to create a python code that checks a folder. If it has a file, python will run the Blue Prism process.

    Is this possible?

    this is the piece of the python code for checking the file

    $watcher = New-Object System.IO.FileSystemWatcher
    $watcher.Path = $folderPath
    $watcher.Filter = $fileFilter
    $watcher.IncludeSubdirectories = $false
    $watcher.EnableRaisingEvents = $true


    this is the piece of the python code for attempting to run Blue Prism

    $automateCPath = "C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe"
    $bpUser = "admin"
    $bpPass = "passw0rd"
    $bpProcess = "Test_Profile lookup"
    $bpResource = $env:COMPUTERNAME
    $arguments = "/run /resourcepc `"$bpResource`" /process `"$bpProcess`" /user $bpUser $bpPass"
    Start-Process -FilePath $automateCPath -ArgumentList $arguments -NoNewWindow -Wait -PassThru


    but this doesn't seem to work

    Continue reading...

Compartilhe esta Página