Click here to Skip to main content
Licence 
First Posted 3 Mar 2000
Views 131,007
Bookmarked 28 times

ShelExec v1.01 - Executing Shell Commands

By PJ Naughter | 3 Mar 2000
A freeware utility to call the ShellExecute API
2 votes, 22.2%
1
1 vote, 11.1%
2
2 votes, 22.2%
3
2 votes, 22.2%
4
2 votes, 22.2%
5
3.41/5 - 18 votes
μ 3.41, σa 2.69 [?]
  • 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

    About the Author

    PJ Naughter



    United States United States

    Member


    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    Generalcreating a shell that supports internal commands such as PinmemberTshilidzi10:47 27 May '08  
    QuestionHow can i programe to make an autorun CD with password with C++ PinmemberAlloch3:21 20 Jul '06  
    GeneralAutorun Browser in full Screen Mode PinsussAnonymous9:53 5 Oct '04  
    Hey there,
     
    I don't know much about C++, so I'm not too sure about how this program works (only that it does when I follow the instructions Wink | ;) So I don't know if this is a crazy question or not, but here goes.
     
    I'm autorunning an html file, and it works great, but I was wondering if there is a way to force the browser to start up in full screen mode? It's going on a business card cd, and it would just look a hell of a lot nicer.
     
    Thanks Smile | :)
    Sarah (sarah@sugarandsalt.ca)
    GeneralRe: Autorun Browser in full Screen Mode Pinmemberpjnaughter13:51 5 Oct '04  
    GeneralNTDETEC.com PinmemberSadru20:46 27 May '03  
    GeneralThanks, How can i launch the DUN entry dialog in vc program PinmemberFayeGolf20:52 3 Feb '02  
    GeneralUseful with PHP on Win32 platform PinsussGuy N. Hurst22:41 8 Apr '00  
    GeneralProblems with threads PinsussMarkus Loibl1:48 5 Apr '00  
    GeneralRe: Problems with threads PinsussPJ Naughter12:58 5 Apr '00  
    GeneralRe: Problems with threads PinsussMarkus Loibl22:17 5 Apr '00  
    GeneralRe: Problems with threads PinmemberYan11:09 11 Jan '01  
    Generalfail if default-verb is not "open" PinsussMarkus Loibl1:44 5 Apr '00  
    GeneralRe: fail if default-verb is not PinsussPJ Naughter12:54 5 Apr '00  
    GeneralRe: fail if default-verb is not PinsussPJ Naughter14:09 9 Apr '00  
    GeneralOther verbs PinsussMatthew Ellis3:36 15 Mar '00  
    GeneralRe: Other verbs PinsussPJ Naughter12:56 5 Apr '00  
    GeneralRe: Other verbs PinsussPJ Naughter14:10 9 Apr '00  

    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.

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