944,048 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 3266
  • VB.NET RSS
Mar 16th, 2005
0

starting 3rd party programs

Expand Post »
How do you start/launch a 3rd party *.exe from within a VB.NET application. The program we want to run do have a few command swithces.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dbarcode is offline Offline
4 posts
since Mar 2005
Mar 16th, 2005
0

Re: starting 3rd party programs

Just Replace "commandname" with the path and exe that you want to run, and replace /a /b /c with any command line switches that you have.

VB.NET Syntax (Toggle Plain Text)
  1. dim wsh
  2. set wsh = createobject("WScript.Shell")
  3.  
  4. wsh.Run "commandname /a /b /c", 0, 1
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 16th, 2005
0

Re: starting 3rd party programs

Quote originally posted by Comatose ...
Just Replace "commandname" with the path and exe that you want to run, and replace /a /b /c with any command line switches that you have.

VB.NET Syntax (Toggle Plain Text)
  1. dim wsh
  2. set wsh = createobject("WScript.Shell")
  3.  
  4. wsh.Run "commandname /a /b /c", 0, 1
Thanks for the help
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dbarcode is offline Offline
4 posts
since Mar 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: DropDown List
Next Thread in VB.NET Forum Timeline: I'm having trouble reopening projects.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC