ShellExecute Examples

Here are some useful examples showing how to use ShellExecute.

Action

Custom Command Run String

To browse to a web site:

ShellExecute open http://www.somewebsite.com

To explore your Windows 2000 documents file folder:

ShellExecute explore “C:\Documents and Settings”

To explore your Windows 98 documents file folder:

ShellExecute explore “C:\My Documents”

To launch Internet Explorer:

ShellExecute “” iexplore

To preview a file in Internet Explorer:

ShellExecute “” iexplore %f

To search for files in the current project folder:

ShellExecute find %j