The sVerb parameter is a single word string that specifies the action to be taken by Shell Execute.
sVerb Value |
Meaning |
edit |
Opens an editor for the file. |
explore |
The function explores the folder specified. |
open |
The function opens the file specified. The file can be an executable file or a document file. It can also be a folder. |
The function prints the document file specified. If filespec is not a document file, the function will fail. |
|
properties |
Displays the file or folder's properties. |
find |
Launches the Find Files application found on the Start menu. |
"" (empty string) |
Ships this parameter to ShellExecute.
|
Examples:
To browse a web site:
ShellExecute("open", "http://www.somedomain.com", "", 1)
To open a document file:
ShellExecute("open", "somefile.doc", "", 1)
To explore your Windows documents file folder:
ShellExecute("explore", "C :\Documents and Settings", "", 1)
To launch Internet Explorer:
ShellExecute("", "iexplore", "", 1)
To preview a file in Internet Explorer:
ShellExecute("", "iexplore somefile.htm", "", 1)
To search for files in the current project folder:
ShellExecute("find", filespec, "", 1)