Shell Function — Microsoft.VisualBasic.Interaction
Shell(pathname
[,style
][,Wait
][,Timeout
] )
pathname
required; StringName of the program to execute
style
optional; AppWinStyle
enumerationThe style of window and whether it receives the focus; its default
value is
AppWinStyle
.MinimizedFocus
.
Wait
optional; BooleanBoolean indicating whether to wait for the
pathname
application to finish execution
before continuing execution of subsequent code; its default value is
False
.
Timeout
optional; IntegerIf Wait
is True
, number
of milliseconds to wait for the pathname
application to terminate before the Shell
function times out. Its default value is -1 indicating that there is
no timeout value.