Support Portal

for ProcessRobot and WinAutomation

Start a new topic

How do I use ProcessRobot variables in a PowerShell script?

Hello!


I'm testing a simple PowerShell script that would invoke a CSV file, and I would like to use a ProcessRobot variable that contains the file path of that CSV. However, when I run the action, I get an error saying that the file path cannot be recognized and that I need to verify that the path is correct.


I've verified that my file path is correct.


How do I actually use ProcessRobot variables inside my PS script?


Thanks!

1 Comment

 Surround with single quote.


$outputfile = '%My_CSV_File%'
Invoke-Item $outputfile

 

Login or Signup to post a comment