Skip to main content
Question

How to run powershell script in A360 where file path has space ? eg: C:\Program Files\My PwScript\test.ps1 Thanks, Chandrasekar.

  • November 4, 2022
  • 4 replies
  • 2623 views

How to run powershell script in A360 where file path has space ? eg: C:\Program Files\My PwScript\test.ps1 Thanks, Chandrasekar.

4 replies

  • Cadet | Tier 2
  • November 7, 2022

"C:\Program Files\My PwScript\test.ps1"


Raul Jaimes
Forum|alt.badge.img+9
  • Navigator | Tier 3
  • November 16, 2022

@Chandrasekar Babu​ 

You can use a bat file with the following :

 

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File  "C:\Program Files\My PwScript\test.ps1"

 

and then run the bat file with Open/Program action.

 

Regards


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • May 24, 2023

Pass the file path in double quotes


Forum|alt.badge.img
  • Automation Anywhere Team
  • May 25, 2023

Test comment: You can rename the folder name to have an underscore instead of space