i have a a problem handling process in C#.net 2005.
My code is
process1.start("shutdown -s -t 00");
what can be done ?
i have a a problem handling process in C#.net 2005.
My code is
process1.start("shutdown -s -t 00");
what can be done ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted May 12, 2008, 5:06 AM
Even without seeing the error message, I think the problem is that the command line arguments to "shutdown" need to be passed as a separate parameter to the Start method:
process1.Start("shutdown", "-s -t 00");
Dipal ChoksiPosted May 11, 2008, 9:44 PM