1) You can wait for a process to finish using the WaitForExit method
(
http://msdn.microsoft.com/library/en...mdiagnosticspr
ocessclasswaitforexittopic.asp)
2) I'm not aware of a function in the .NET Framework to reboot a machine,
but you could use the command RESTART -R
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Aaron Ackerman" <no@spam.com> schreef in bericht
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a very small console taks that i perform at the very beginning of
running my app for the first time.
I want to be able to wait until this Process is finished and then initiate
a reboot of the machine.
Does anyone have a code snippet that could accomplish this?