Results 1 to 3 of 3

Thread: to shell or not to shell?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Atlanta, GA, USA
    Posts
    3

    Post

    All,

    What is the major difference between the shell command and the shell execute command (besides the extra api stuff needed for shell execute) and when should I use both?

    Dan Griffis
    VB Programmer

  2. #2
    Lively Member FirstKnight's Avatar
    Join Date
    Jul 1999
    Location
    Johannesburg, South Africa
    Posts
    95

    Post

    Dan,

    Shell Execute makes a direct call to the windows API where as the VB shell command works through build in ActiveX components.

    The major difference would be the size of your program, because you don't need to distribute these components with you program if you use Shell Execute. At least thats what I think

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    ShellExecute allows you to control better what's going on, and it allowes you to start a registered program by executing the file (eg. start word when you execute mydoc.doc)
    But if you just want to start a program, VB's Shell funcrtion is usually enough to use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width