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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login