Skip to main content
Cadet | Tier 2
November 4, 2022
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
  • 2874 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
    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

    Cadet | Tier 2
    May 24, 2023

    Pass the file path in double quotes

    Automation Anywhere Team
    May 25, 2023

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