Shell (Method)

Applies To:

Application object

Description:

Launches an external application and passes a command line argument to the application.

Use this method to open the browser from the Desktop client (e.g. from the Dashboard section). To open an URL from a web-based client (e.g. the web client), use the OpenURL (Method).

Note:

Do not use Application.Shell() in Interactive Reporting document files to be deployed in the EPM Workspace.

Syntax:

Expression.Shell(CommandLine As String, [optional]Arguments As String)

Expression Required:

An expression that returns an Application object

Example:

This example launches Notepad with a text file:

var App = "c:\\Winnt\\notepad.exe"
var Args = "C:\\Docs\\Readme.txt"
Application.Shell(App,Args)