asp.net - C#|Working with process help -



asp.net - C#|Working with process help -

a few days ago started working process, did few things.. , wanted inquire question.

lets got process :

process = process.start("d:\\server1\\orangebox\\srcds.exe", "srcds.exe -console -game cstrike +maxplayers 16 -port 27017 +map de_dust2"); process.enableraisingevents = true; process.exited += new eventhandler(process_exited); } void process_exited(object sender, eventargs e) { process = process.start("d:\\server1\\orangebox\\srcds.exe", "srcds.exe -console -game cstrike +maxplayers 16 -port 27017 +map de_dust2"); process.enableraisingevents = true; process.exited += new eventhandler(process_exited);

so, works perfect. but, how can new process? but. added them button , info of them comes textbox.

lets got button1 , 3 textbox. 1 of textboxs give me process name, 1 args, , 1 if run ot not.

so how can that?

thanks!!

use processstartinfo class specify arguments , assign relative property of process class.

http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo(v=vs.71).aspx

if don't want process run now, initialize don't phone call run() now.

c# asp.net

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -