uCon HomePage

Script Cmd: SHELLEXEC


SHELLEXEC [-c] {operation} {file} [params] [directory]

This command is a wrapper to provide script-level access to the ShellExecute API.  For complete details refer to the MSDN documentation on this API.

Operations:
edit | explore | find | open | print
Options:
-c     initialize COM (call CoInitializeEx) prior to running ShellExecute (see remarks at MSDN) .

Examples:
Open a document (of various types):
Open explorer on a specified directory:

Note1:
The command is run in SW_SHOWNORMAL mode, as described in MSDN.

Note2:
If 'params' and/or 'directory' is not specified, an empty string is used in its place in the API call.