Results 1 to 3 of 3

Thread: Difference Shell / process start?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2012
    Posts
    48

    Difference Shell / process start?

    You can start an application two ways you can shell the application or you can process start.

    Dim shell
    shell = CreateObject("wscript.shell")
    shell.run("%SystemDrive%\application.exe")

    or

    Process1.StartInfo.FileName = ("%SystemDrive%\application.exe")

    What is the difference between these two approaches?

  2. #2
    Lively Member
    Join Date
    Aug 2009
    Posts
    112

    Re: Difference Shell / process start?

    I'm not entirely sure, but I think shell is a bit like Command prompt, and process start is a bit more like the "run" feature on windows.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Difference Shell / process start?

    under the hood, they are basically the same.

    Process.Start gives you a little more control and is built-in to the .NET framework.
    Shell requires the use of external components, and depends on the name of it not changing.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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