|
|
|
#1 (permalink) | ||||||||||||||
|
Non generic awesome title
![]() |
ok...I'm familiar with a bit of of VB but my question here is simple...
I'm creating a dumby proof application to launch dedicated servers from my LAN server box. So far I created a good system of making shortcuts in folders labled with the game name and you double click what you'd like to do. Just for craps and laughs, I decided to make a GUI interface using a multi form layout for each game that can launch each application. Example the main form opens with several command buttons that allow me to open the TF2 form, the UT2004 form, the CoD4 form, and the CoD WAW form all with lable art depicting each game. Now lets say I click the CoD4 button. The Cod 4 frame opens and I see the selection options for running the server Now I have a set of radial buttons to let me select which kind of server I want to run. I can select Deathmatch, Team Deathmatch... and hit the run server button. This is where I need help. Obviously when I hit the button it's going to check the value of the radial button and select the right configuration file to run the server, however, how do I run a program OUTSIDE of the VB.net interface? Furthermore is there a way to look at the current processes list to ensure the server isn't already running.
__________________
Quote:
Case Mod: Silent Night Black's latest review: Need for Speed: Shift VS. Race Driver: Grid Alabama Overclocker >SELECT * FROM tblUsers WHERE clue > 0 0 rows returned
|
||||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
4.0 GHz
|
This should do it something like what you are wanting to do.
dim yourExe as new Process yourExe.StartInfo.FileName = "c:\\your.exe" yourExe.StartInfo.Argument = "/arg stuff" yourExe.Start
__________________
It's not gonna overclock itself.
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||||||
|
Non generic awesome title
![]() |
what about checking current processes to make sure it's not already open?
__________________
Quote:
Case Mod: Silent Night Black's latest review: Need for Speed: Shift VS. Race Driver: Grid Alabama Overclocker >SELECT * FROM tblUsers WHERE clue > 0 0 rows returned
|
||||||||||||||
|
|
|
|
#4 (permalink) | |||||||||||||||
|
4.0 GHz
![]() |
(might be a bit late)
Check out the Process class (System.Diagnostics) for example, to search for a process (my vb.net is a bit rusty, apologies for errors): Quote:
__________________
3DMark06: 19091 - 3DMark Vantage: P15264 - SuperPi: 10.968s Programming Quote of the Day: Bjarne Stroustrup: Quote:
|
|||||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|