Click here to Skip to main content
11,645,087 members (64,640 online)
Click here to Skip to main content

ShelExec v1.01 - Executing Shell Commands

, 3 Mar 2000 143.4K 2.2K 28
Rate this:
Please Sign up or sign in to vote.
A freeware utility to call the ShellExecute API
  • Download source files - 27 Kb
  • Introduction

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


    History
    Installation Requirements
    Usage
    Contacting the Author


    History

    V1.01 (16 July 1999)
    • Initial public release.


    Installation Requirements

    • The program is for Win32 only and has no external requirements on dlls other than the ones shipped as standard with any Win32 platform.


    Usage

    Places where you might find ShelExec useful are in adding an Autorun.inf file to your CD-R / CD-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 and the index.htm files into the root directory and create a autorun.inf file with the following contents:

    [autorun]
    open=ShelExec.exe index.html
    icon=youricon.ico
    

    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 http://somesite.com, ftp://www.microsoft.com and mailto:pjn@indigo.ie.

    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 because on NT "start" is implemented as an Internal command in cmd.exe (as opposed to a standard exe on 95/98) with the upshot that your CD's will not AutoRun on NT 4 or Windows 2000. Using ShelExec will mean that your CD's will autorun on all OS's which support it.


    Contacting the Author

    PJ Naughter
    Email: pjn@indigo..ie
    Web: http://www.naughter.com
    16 July 1999


    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    PJ Naughter
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

     
    Generalcreating a shell that supports internal commands such as Pin
    Tshilidzi27-May-08 9:47
    memberTshilidzi27-May-08 9:47 
    QuestionHow can i programe to make an autorun CD with password with C++ Pin
    Alloch20-Jul-06 2:21
    memberAlloch20-Jul-06 2:21 
    GeneralAutorun Browser in full Screen Mode Pin
    Anonymous5-Oct-04 8:53
    sussAnonymous5-Oct-04 8:53 
    GeneralRe: Autorun Browser in full Screen Mode Pin
    pjnaughter5-Oct-04 12:51
    memberpjnaughter5-Oct-04 12:51 
    GeneralNTDETEC.com Pin
    Sadru27-May-03 19:46
    memberSadru27-May-03 19:46 
    GeneralThanks, How can i launch the DUN entry dialog in vc program Pin
    FayeGolf3-Feb-02 19:52
    memberFayeGolf3-Feb-02 19:52 
    GeneralUseful with PHP on Win32 platform Pin
    Guy N. Hurst8-Apr-00 21:41
    sussGuy N. Hurst8-Apr-00 21:41 
    GeneralProblems with threads Pin
    Markus Loibl5-Apr-00 0:48
    sussMarkus Loibl5-Apr-00 0:48 
    GeneralRe: Problems with threads Pin
    PJ Naughter5-Apr-00 11:58
    sussPJ Naughter5-Apr-00 11:58 
    GeneralRe: Problems with threads Pin
    Markus Loibl5-Apr-00 21:17
    sussMarkus Loibl5-Apr-00 21:17 
    GeneralRe: Problems with threads Pin
    Yan11-Jan-01 10:09
    memberYan11-Jan-01 10:09 
    Generalfail if default-verb is not "open" Pin
    Markus Loibl5-Apr-00 0:44
    sussMarkus Loibl5-Apr-00 0:44 
    GeneralRe: fail if default-verb is not Pin
    PJ Naughter5-Apr-00 11:54
    sussPJ Naughter5-Apr-00 11:54 
    GeneralRe: fail if default-verb is not Pin
    PJ Naughter9-Apr-00 13:09
    sussPJ Naughter9-Apr-00 13:09 
    GeneralOther verbs Pin
    Matthew Ellis15-Mar-00 2:36
    sussMatthew Ellis15-Mar-00 2:36 
    GeneralRe: Other verbs Pin
    PJ Naughter5-Apr-00 11:56
    sussPJ Naughter5-Apr-00 11:56 
    GeneralRe: Other verbs Pin
    PJ Naughter9-Apr-00 13:10
    sussPJ Naughter9-Apr-00 13:10 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web03 | 2.8.150731.1 | Last Updated 4 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid