Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 10-02-09   #1 (permalink)
Non generic awesome title
 
Black Magix's Avatar
 
intel nvidia

Join Date: Mar 2008
Location: I'll let you decide.
Posts: 2,809
Blog Entries: 1

Rep: 256 Black Magix is a proven memberBlack Magix is a proven memberBlack Magix is a proven member
Unique Rep: 193
Folding Team Rank: 290
Team Name: Explosm
Hardware Reviews: 2
Trader Rating: 11
Default VB.net question

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:
Originally Posted by Threefeet View Post
Yo dawg, we heard you like molding public opinion so we put terrorists into piracy so you can save the world while you make more money...

>SELECT * FROM tblUsers WHERE clue > 0
0 rows returned

System: Eris
CPU
Q9650
Motherboard
Gigabyte UD3P
Memory
8GB Corsair Dominator 1066
Graphics Card
EVGA GTX 295 Co-Op Edition
Hard Drive
2x 1TB 2x 750GB 3x 500GB
Sound Card
Asus Xonar DX
Power Supply
Antec 850w
Case
Silverstone Kublai - Silent Night Mod
CPU cooling
D-tek v2 CPU Block
GPU cooling
Stock
OS
Windows 7 x64 / Windows Vista Ultimate x64
Monitor
Acer 24' Widescreen & Viewsonic 20' Widescreen
Black Magix is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 10-02-09   #2 (permalink)
4.0 GHz
 
SolShade's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: your pants
Posts: 549

Rep: 14 SolShade Unknown
Unique Rep: 14
Trader Rating: 0
Default

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.
Quote:
Originally Posted by Brutuz View Post
Ew, ASUS, its like some famous girls, looks flashy, but when you use it, you feel violated and think you might of caught something.

System: Unholy Union
CPU
i7920 @ 4ghz 1.42V
Motherboard
Asus P6T6 Revolution
Memory
mushkin ddr3
Graphics Card
eVGA 8800 Ultra
Hard Drive
4 WD Raptors in raid 0
Sound Card
onboard -_-
Power Supply
PC PnC 1kw
Case
2 Lian-Li A16Bs
CPU cooling
Swiftech Apogee GTZ
GPU cooling
DD 8800gtx waterblock
OS
Windows 7 x64
Monitor
Samsung 22inch LCD ws
SolShade is online now   Reply With Quote
Old 10-05-09   #3 (permalink)
Non generic awesome title
 
Black Magix's Avatar
 
intel nvidia

Join Date: Mar 2008
Location: I'll let you decide.
Posts: 2,809
Blog Entries: 1

Rep: 256 Black Magix is a proven memberBlack Magix is a proven memberBlack Magix is a proven member
Unique Rep: 193
Folding Team Rank: 290
Team Name: Explosm
Hardware Reviews: 2
Trader Rating: 11
Default

what about checking current processes to make sure it's not already open?
__________________
Quote:
Originally Posted by Threefeet View Post
Yo dawg, we heard you like molding public opinion so we put terrorists into piracy so you can save the world while you make more money...

>SELECT * FROM tblUsers WHERE clue > 0
0 rows returned

System: Eris
CPU
Q9650
Motherboard
Gigabyte UD3P
Memory
8GB Corsair Dominator 1066
Graphics Card
EVGA GTX 295 Co-Op Edition
Hard Drive
2x 1TB 2x 750GB 3x 500GB
Sound Card
Asus Xonar DX
Power Supply
Antec 850w
Case
Silverstone Kublai - Silent Night Mod
CPU cooling
D-tek v2 CPU Block
GPU cooling
Stock
OS
Windows 7 x64 / Windows Vista Ultimate x64
Monitor
Acer 24' Widescreen & Viewsonic 20' Widescreen
Black Magix is offline I fold for Overclock.net Overclocked Account   Reply With Quote
Old 10-11-09   #4 (permalink)
4.0 GHz
 
dharmaBum's Avatar
 
intel nvidia

Join Date: Apr 2007
Location: Raleigh, NC
Posts: 747

Rep: 121 dharmaBum is acknowledged by manydharmaBum is acknowledged by many
Unique Rep: 89
Trader Rating: 0
Default

(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:
Imports System.Diagnostics
...
For Each clsProcess As Process in Process.GetProcesses()
If clsProcess.ProcessName.Contains(name) Then
//do something
End If
Next
__________________
3DMark06: 19091 - 3DMark Vantage: P15264 - SuperPi: 10.968s

Programming Quote of the Day:
Bjarne Stroustrup:
Quote:
There are only two industries that refer to their customers as ‘users’.

System: Europa
CPU
E8500 4.36ghz @ 1.36v
Motherboard
EVGA 780i SLi P05 Bios
Memory
G.SKILL 4GB(2x2GB) @ 924MHz (5-4-4-12-2T)
Graphics Card
2xEVGA 8800GTS (G92) 512MB @800/2000/2110
Hard Drive
Seagate 500gbx2, (fake-)RAID0
Sound Card
Sound Blaster X-Fi XtremeGamer
Power Supply
CORSAIR 1000HX 1000W
Case
Gigabyte GZ-FA2CA-AJB Black Aluminum
CPU cooling
TDX 775 Block, 360 BlackIce rad
GPU cooling
MAZE5x2, TT copper HS
OS
Fedora10-86_64/Vista64
Monitor
22" Samsung SyncMaster 2232BW
dharmaBum is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 04:29 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.12742 seconds with 8 queries