Skip to main content
Email Password   helpLost your password?
  • 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)


    Installation Requirements


    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


    You must Sign In to use this message board.
     
     
    Per page   
     FirstPrevNext
    Generalcreating a shell that supports internal commands such as Pin
    Tshilidzi
    10:47 27 May '08  
    QuestionHow can i programe to make an autorun CD with password with C++ Pin
    Alloch
    3:21 20 Jul '06  
    GeneralAutorun Browser in full Screen Mode Pin
    Anonymous
    9:53 5 Oct '04  
    GeneralRe: Autorun Browser in full Screen Mode Pin
    pjnaughter
    13:51 5 Oct '04  
    GeneralNTDETEC.com Pin
    Sadru
    20:46 27 May '03  
    GeneralThanks, How can i launch the DUN entry dialog in vc program Pin
    FayeGolf
    20:52 3 Feb '02  
    GeneralUseful with PHP on Win32 platform Pin
    Guy N. Hurst
    22:41 8 Apr '00  
    GeneralProblems with threads Pin
    Markus Loibl
    1:48 5 Apr '00  
    GeneralRe: Problems with threads Pin
    PJ Naughter
    12:58 5 Apr '00  
    GeneralRe: Problems with threads Pin
    Markus Loibl
    22:17 5 Apr '00  
    GeneralRe: Problems with threads Pin
    Yan
    11:09 11 Jan '01  
    Generalfail if default-verb is not "open" Pin
    Markus Loibl
    1:44 5 Apr '00  
    GeneralRe: fail if default-verb is not Pin
    PJ Naughter
    12:54 5 Apr '00  
    GeneralRe: fail if default-verb is not Pin
    PJ Naughter
    14:09 9 Apr '00  
    GeneralOther verbs Pin
    Matthew Ellis
    3:36 15 Mar '00  
    GeneralRe: Other verbs Pin
    PJ Naughter
    12:56 5 Apr '00  
    GeneralRe: Other verbs Pin
    PJ Naughter
    14:10 9 Apr '00  


    Last Updated 3 Mar 2000 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009