File.OpenURL

File.OpenURL (

string URL,

number WindowMode = SW_SHOWNORMAL )

Description

Opens a local file or web-based URL in the user's default Web browser.

Note: This action uses the default shell verb for the URL.

Parameters

URL

(string) The URL for the web page, or the path to the local file. Click the browse button if you would like to select a local file.

Note: The "http://" prefix is optional, but it's generally a good idea to include it so the page will be located faster.

WindowMode

(number) The window mode to use:

CONSTANT

VALUE

DESCRIPTION

SW_SHOWNORMAL

1

Normal. (Default)

SW_MAXIMIZE

3

Maximized.

SW_MINIMIZE

6

Minimized.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions