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 LibreOffice.

1

초점이 ν‘œμ€€ 크기의 ν”„λ‘œκ·Έλž¨ 창에 μžˆμŠ΅λ‹ˆλ‹€.

Not implemented in LibreOffice.

2

초점이 μ΅œμ†Œν™”λœ ν”„λ‘œκ·Έλž¨ 창에 μžˆμŠ΅λ‹ˆλ‹€.

3

초점이 μ΅œλŒ€ν™”λœ ν”„λ‘œκ·Έλž¨ 창에 μžˆμŠ΅λ‹ˆλ‹€.

4

초점 없이 ν”„λ‘œκ·Έλž¨ 창이 ν‘œμ€€ 크기가 λ©λ‹ˆλ‹€.

Not implemented in LibreOffice.

6

초점이 ν™œμ„± 창에 μžˆλŠ” μƒνƒœμ—μ„œ ν”„λ‘œκ·Έλž¨ 창이 μ΅œμ†Œν™”λ©λ‹ˆλ‹€.

Not implemented in LibreOffice.

10

전체 ν™”λ©΄ ν‘œμ‹œμž…λ‹ˆλ‹€.


note

Windowstyle 3 and 10 are equivalent in Windows systems.


Param

String that specifies additional arguments passed to the program.

bSync

이 값을 True둜 μ„€μ •ν•  경우 μ‰˜ ν”„λ‘œμ„ΈμŠ€κ°€ μ™„λ£Œλ  λ•ŒκΉŒμ§€ Shell λͺ…λ Ήκ³Ό λͺ¨λ“  LibreOffice μž‘μ—…μ΄ λŒ€κΈ°ν•©λ‹ˆλ‹€. 이 값을 False둜 μ„€μ •ν•  경우 μ‰˜μ΄ λ°”λ‘œ κ΅¬ν•΄μ§‘λ‹ˆλ‹€. 기본값은 Falseμž…λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

53 νŒŒμΌμ„ 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.

73 κΈ°λŠ₯이 κ΅¬ν˜„λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

Example:


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

Please support us!