Support Forums

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.
User avatar
curtking
Posts: 2
Joined: Tue Oct 28, 2014 5:29 am

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

Postby curtking » Sun Dec 20, 2015 7:33 am

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
User avatar
Bosparan
Posts: 197
Joined: Sun Mar 03, 2013 12:45 pm

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

Postby Bosparan » Mon Dec 21, 2015 12:22 am

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

Return to “Wish List and Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest