shutdown.exe (Question)
If i were tto implement somthing like this :idea:
cmd \k shutdown.exe -r
on a button click would that saftley restart y comp. from that app. if not how would i do this :?:
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
google is letting me down :(
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
try this:
using System.Diagnostics;
ProcessStartInfo startinfo = new ProcessStartInfo("shutdown.exe","-r");
Process.Start(startinfo);
hmmm the r stands for restart so is l logoff?
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
Tahnk you and is thissafe for the computer?
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
yeah its safe, its no different then going to cmd and using it
lol ok thanks so i guess its safe there
tayspen
<Insert title here>
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99