Shell Function/text/sbasic/shared/03130500.xhpShell function
Shell Function
Starts another application and defines the respective window style, if necessary.Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])
Pathname
Name of the program that you want to start, optionally with complete path and/or arguments.
Windowstyle
Optional integer expression that specifies the style of the window that the program is executed in.Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.The following values are possible:
WindowstyleMeaning0The focus is on the hidden program window.Not implemented in %PRODUCTNAME.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.
Windowstyle 3 and 10 are equivalent in Windows systems.
Param
String that specifies additional arguments passed to the program.
bSync
If 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.Sub ExampleShellForWin Shell("c:\windows\calc.exe",2)End Sub