Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Syntax

$cs.Shell_Execute(string command, string arguments = "", bool wait = true, int windowstyle = 0, bool mustexist = false, string workingdirectory = "")

Parameters

command

command to execute

arguments

argumtents for the command - if none enter empty string ''

wait

wait for command to complete (default True)

windowstyle

should command window be hidden or visible (default hidden). Choices (0=hidden, 1=normal, 2=minimized, 3=Maximized)

mustexist

check if command file exists before excuting (default False)

workingdirectory

working directory for command (default emtpy)

Example

$cs.Shell_Execute("msiexec","/i `"$Packageroot\kit\GoogleChromeStandaloneEnterprise64.Msi`" /QN REBOOT=REALLYSUPPRESS ALLUSERS=1")

returns result in integer

  • No labels