Naughter Software Logo

ShelExec Logo ShelExec v1.21 An application + source code to call the ShellExecute API

Welcome to ShelExec, A very simple utility to allow you to call the ShellExecute API from the command line.

Places where you might find ShelExec useful are in adding an autorun.inf file to your CD / DVD +/- RW discs. For example suppose you have a HTML page called index.htm on the root of your CD which you would like to run automatically whenever the user inserts the CD. All you need to do is put ShelExec.exe, some ico file (this is optional as is the icon=... in the autorun.inf file) and the index.htm files into the root directory and create a autorun.inf file with the following contents:

open=ShelExec.exe @EXEDRV@\index.html

Note that it is important to use the @EXEDRV@ or @EXEDIR@ replacement parameters as this helps ensures that ShelExec uses a fully quoted path when it runs your program. Otherwise you can get some problems on various versions of Windows with your AutoRun CD's.

Items that ShelExec can handle include any file which is registered with the shell e.g. Word .Doc files, Text Files, batch files etc etc. It can also handle URLS such as "", " " and ""

The more technically minded of you may say why is there a need to have this program since you can use "start filename" on autorun CD's without any apparent problems. The problem with this approach is that it does not work on NT kernel because on these operating systems "start" is implemented as an "Internal" command in cmd.exe (as opposed to a standard exe on Windows 9x) with the upshot that your CD's will not AutoRun on these operating systems. Using ShelExec will mean that your CD's will autorun on all OS's which support it.


The enclosed zip file contains the ShelExec source code and a number of prebuilt binaries of ShelExec.





V1.21 (23 October 2016)

V1.20 (31 July 2016)

V1.19 (25 July 2015)

16 April 2013

V1.18 (14 April 2013)

V1.17 (12 January 2008)

V1.16 (21 December 2006)

V1.15 (23 September 2005)

3 July 2004

V1.14 (24 January 2003)

V1.13 (18 October 2002)

V1.12 (17 October 2002)

29 July 2002

V1.11 (1 October 2001)

V1.1 (10 February 2001)

10 November 2000

V1.02 (9 April 2000)

V1.01 (16 July 1999)