Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Execute PowerShell Script parameters
-
HI,
I need to execute a .bat or an equivalent powershell to be able to perform like below.
I know I can create a powershell script in Plan but I couldn’t pass the parameters.@powershell Set-ExecutionPolicy Unrestricted
CLS@powershell.exe -NoExit -ImportSystemModules "%~dp0..\cleanup01.ps1" "\SFT\settings\WFE-F0Sb.xml"
What I created in Plan--> Powershell is as follow:
param($projectDir, $Instance)
$ErrorActionPreference= 'silentlycontinue'
powershell -file $projectDir -projectDir $projectDir -Instance $instanceProduct: BuildMaster
Version: 6.0.10
-
Batch files need to be executed by "cmd.exe". Instead, you can directly execute a ".cmd" file.
-
Hi Alana,
where I can choose the .cmd in plan if I wanna execute some .cmd or .batch job?
I dont see any option to choose a .cmd/.batch file.Cheers,
Arash
-
In this case, you can use the execute command line operation; please see Executing a Command Line Utility During Deployment in BuildMaster