Shell Function [Runtime]/text/sbasic/shared/03130500.xhpSun Microsystems, Inc.converted from old format - fpeShell functionShell Function [Runtime]Starts another application and defines the respective window style, if necessary.SyntaxShell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync]) ParameterPathnameComplete path and program name of the program that you want to start.WindowstyleOptional integer expression that specifies the style of the window that the program is executed in. The following values are possible:
0The focus is on the hidden program window.1The focus is on the program window in standard size.2The focus is on the minimized program window.3focus is on the maximized program window.4Standard size program window, without focus.6Minimized program window, focus remains on the active window.10Full-screen display.
ParamAny string expression that specifies the command line that want to pass.bSyncIf this value is set to true, the Shell command and all $[officename] tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false.ExampleSub ExampleShellForWin Shell("c:\windows\calc.exe",2)end sub