/
Shell_Execute
Shell_Execute
Description
Executes specified program/command using specified options
Syntax
Shell_Execute(sProgram, sArgument, bWait, iStyle, bCheckProgramExistence) As Boolean
Parameters
sProgram (String)
Program/command to execute
sArgument (String)
Command line arguments
bWait (Boolean)
Wait for termination before proceeding
iStyle (Integer)
Windows Style Constants (e.g minimized or normal)
bCheckProgramExistence (Boolean)
Check for existence of the program
Return value
giErrorLevel is set and contains the error code returned from the OS
Example
VBScript
If bStatus Then bStatus = Shell_Execute(gsWindowsDir & "\Regedit.exe", gsTempDir & "\Regfile.reg /S", True, 1, True)
Related functions
, multiple selections available,
Related content
$cs.Shell_Execute
$cs.Shell_Execute
More like this
$cs.Shell_ExecuteWithTimeout
$cs.Shell_ExecuteWithTimeout
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this
File_WaitWhileExist
File_WaitWhileExist
More like this
$cs.Reg_SetInteger
$cs.Reg_SetInteger
More like this
$cs.Reg_ExistKey
$cs.Reg_ExistKey
More like this