Shell Function

다른 응용 프로그램을 시작하고 필요한 경우 각각의 창 스타일을 지정합니다.

Syntax:

Shell (Pathname As String[, Windowstyle As Integer[, Param As String[, bSync]]])

Parameters:

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.

note

Parameter Windowstyle is only effective on Windows systems. On other systems the parameter is ignored.


The following values are possible:

Windowstyle

Meaning

0

초점이 숨겨진 프로그램 창에 있습니다.

Not implemented in Collabora Office.

1

초점이 표준 크기의 프로그램 창에 있습니다.

Not implemented in Collabora Office.

2

초점이 최소화된 프로그램 창에 있습니다.

3

초점이 최대화된 프로그램 창에 있습니다.

4

초점 없이 프로그램 창이 표준 크기가 됩니다.

Not implemented in Collabora Office.

6

초점이 활성 창에 있는 상태에서 프로그램 창이 최소화됩니다.

Not implemented in Collabora Office.

10

전체 화면 표시입니다.


note

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

이 값을 True로 설정할 경우 쉘 프로세스가 완료될 때까지 Shell 명령과 모든 Collabora Office 작업이 대기합니다. 이 값을 False로 설정할 경우 쉘이 바로 구해집니다. 기본값은 False입니다.

Error codes:

5 잘못된 프로시저 호출입니다.

53 파일을 찾을 수 없습니다.

73 기능이 구현되지 않았습니다.

Example:

Sub ExampleShellForWin
    Shell("c:\windows\calc.exe",2)
End Sub

Please support us!