PowerShell Studio Request - Run PowerShell scripts in "Pre-Build"Post-Build"

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
curtking
Posts: 2
Last visit: Wed Apr 11, 2018 6:41 am

PowerShell Studio Request - Run PowerShell scripts in "Pre-Build"Post-Build"

Post by curtking »

In the "Build Options" section, there are options to run "Pre-Build Commands" and "Post-Build Commands." So far, I've figured out how to run .BAT files using these options, but I would like to be able to run PowerShell scripts as well.

Thanks,
Curt
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

Re: PowerShell Studio Request - Run PowerShell scripts in "Pre-Build"Post-Build"

Post by Bosparan »

Hi Curt,

you can run a powershell script by running powershell.exe with the -File parameter. Example:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "C:\ExampleFolder\Example.ps1"

Cheers,
Bosparan
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked