Skip to content

Shell_Execute

Executes specified program/command using specified options

Shell_Execute(sProgram, sArgument, bWait, iStyle, bCheckProgramExistence) As Boolean

Program/command to execute

Command line arguments

Wait for termination before proceeding

Windows Style Constants (e.g minimized or normal)

Check for existence of the program

giErrorLevel is set and contains the error code returned from the OS

If bStatus Then bStatus = Shell_Execute(gsWindowsDir & "\Regedit.exe", gsTempDir & "\Regfile.reg /S", True, 1, True)

Scripting Guidelines

Constants Package Property Variables