I need to start a program from within VB. Which is a better way to do it - using function Shell or Create Process? Why?
Printable View
I need to start a program from within VB. Which is a better way to do it - using function Shell or Create Process? Why?
take a look at the parameters for CreateProcess. There are many!
Thus, if you need anything you cannot do with Shell use CreateProcess or ShellExecute or ShellExecuteEx. e.g. you can pass an environment string to the child process with CreateProcess.
Shell is easier to use, because you don't need an API Declare statement.