Page 1 of 1

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

Posted: Sun Dec 20, 2015 6:33 am
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

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

Posted: Sun Dec 20, 2015 11:22 pm
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