VDS Renaissance のインターフェースは複数の言語に対応しています。公式ドキュメントは、単一で一貫した常に最新のリファレンスを保証するため、英語で管理されています。

SHELL

Windows Linux macOS

Syntax

SHELL <operation>, <filename>, <parameters>, <start-dir> WAIT, <priority level>

Description

This command uses the Windows shell to run a program or open a file using the associated action specified in the registry.

The <operation> specifies the action to be performed. It corresponds to the actions listed on an Explorer context menu, e.g. Open, Print. If <operation> is null, the default action is used.

The <filename> specifies the path of the program or file to be opened.

The <parameters> specify the command line parameters, if any. (This option is only valid if <filename> is a program.)

The optional <start-dir> parameter specifies a directory to be set as the current directory when the command is run. Some programs may not work correctly unless this is set to the program's own directory.

If WAIT is specified the script will wait until the operation is complete.

The <priority level> for the task may be specified as one of: IDLE, NORMAL (the default), HIGH or REALTIME. If IDLE, the program runs only if the system is idle. NORMAL is the priority level that all programs run at by default. HIGH and REALTIME are higher priority levels and should be used with care, if at all, as you may experience problems by giving programs a higher priority than Windows system functions.

OK

Set to false if the command fails.

Example

SHELL "",My Data.LNK
SHELL open,http://www.dialogscript.com/
SHELL print,Report.DOC
SHELL printto,Budgets.XLS,"Microsoft Fax WPSUNI.DRV FAX:",,WAIT

See also