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 ལས་འགན་ཡོད་ཚད་ shell འཕེལ་རིམ་མཇུག་མ་བསྒྲིལ་པར་ངང་སྒུག་རྣམས་པར་གནས་ གལ་སྲིད་དེ་ཉིད་ falseསྒྲིག་ན་shell ཐད་ཀར་འབྲས་བུར་ཕྱིར་ལོག་ ཁས་ལེན་གྲངས་ཐང་ནི་ false

Error codes:

5 ནུས་མེད་ཀྱི་བརྒྱུད་རིམ་འཁོར་སྤྱོད་

53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་53 ཡིག་ཆ་འཚོལ་མི་ཐུབ་པ་

73 ནུས་པ་མངོན་འགྱུར་མ་བྱུང་བ་

Example:


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

Please support us!