|
-
Mar 12th, 2012, 05:04 AM
#1
Thread Starter
Member
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?
-
Mar 12th, 2012, 06:15 AM
#2
Lively Member
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.
-
Mar 12th, 2012, 07:04 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|