Page tree
Skip to end of metadata
Go to start of metadata

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 program

 

Return value

giErrorLevel are set and contains the errorcode returned from the OS


Example

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

Scripting Guidelines

 

Related functions

 

 

  • No labels