Please enable JavaScript to view this site.

A-Shell Consolidated Reference

(MBF_SHLEXC) For launching Windows commands, this method is often preferable to the Windows Command Line method discussed above, since it eliminates the problem of determining the fully qualified path for the command. Instead, you just specify the file or object reference (or URL) and Windows launches the necessary program (or gives the user a chance to specify what program goes with that file or object type.). For example, if cmd = "http://www.microsabio.com", then clicking it would launch the browser and go to the specified web page. If cmd = mydata.xls, clicking the button would launch whatever the user’s preferred spreadsheet program was to open the spreadsheet.

If the file object specified in cmd does not contain a drive or directory specifier, then it will be assumed to be in A-Shell’s "DOC" subdirectory (e.g. c:\vm\miame\doc). Otherwise, you need to specify a native pathspec (unless the file is in the system search PATH). See MX_FSPEC.