Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2005, 03:07 AM
Authorized User
 
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default ShellExecute Problem

How to use "ShellExecute" in VB.Net to open external program ???
Does it like VB6 ? But, It didn't work when I'd tried.

Any Idea ? or other ways out ?

Thanks in advance.

 
Old April 5th, 2005, 12:36 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

How about providing the code that you tried, an explanation of what happened and what didn’t, what it is that you want to do, etc.

After all, you want help. Help the people you are asking help you.
 
Old April 5th, 2005, 01:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You can use:

System.Diagnostics.Process.Start("c:\[YourFolder]\[YourPath]\[YourProgram].exe")

Obviously, substitute in the correct values for "YourFolder", "YourPath", "YourProgram".

J
 
Old April 25th, 2005, 02:59 AM
Authorized User
 
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks a lot






Similar Threads
Thread Thread Starter Forum Replies Last Post
shellexecute and Microsoft Outlook jake Beginning VB 6 4 September 6th, 2005 05:12 AM
passing/getting arguments from ShellExecute TazMania23 Visual C++ 0 May 21st, 2004 12:14 PM
ShellExecute problem kaz VS.NET 2002/2003 0 December 27th, 2003 07:59 PM
DLL vs ShellExecute() eamonn_ryan Visual C++ 0 September 26th, 2003 12:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.