Click here to Skip to main content
15,919,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.
this is my Code :

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "xcopy";
startInfo.Arguments = @"D:\MyFolder \\192.168.0.165\MyShareFolder /D /I /F /L";
Process.Start(startInfo);

I want to restart computer by this code but my project can not be run .
thanks
Posted

"I want to restart computer"
Are you sure? Who told you you could restart a computer with an xcopy command? That's nonsense.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900