SHELL.Execute

Previous  Next

 

result = SHELL.Execute( command    AS STRING, 

                        parameters AS STRING = "", 

                        show       AS INTEGER = TRUE, 

                        wait       AS INTEGER = TRUE ) AS INTEGER

 


 

Executes the specified operating system application.  The parameters is application dependent.  The show parameter specifies if a window show be shown.  See documentation about the Windows ShellExecute function for a detailed description of this parameters.  The wait parameter can be 0 for now wait or a timeout value.  Specify hex 0xffffffff or omit for infinite timeout.

 

Example:

 

$LIBRARY "MyBASIC2_ExtLib.dll"

 

SHELL.Execute( "notepad", "Hello.Bas", 1, FALSE )