Visual Studio 2010 C#
Is it possible to run and close a program from commandline? I need to do something like that:
myProgram.exe -start
-- do something --
myProgram.exe -stop
I know how to implement the first part (String[] args in main) but how can I close my running program?
Edit
myProgram.exe is handling some UDP communication and have to be executed while the stuff in -- do something -- is executed. Sorry for beeing imprecise.