i make c# function for these command
private void execute_command(String Comande)
{
if (Comande.CompareTo("shutdown") == 1)
{
System.Diagnostics.Process.Start("shutdown", "-s");
}
else if (Comande.CompareTo("restart") == 1)
{
System.Diagnostics.Process.Start("shutdown", "-r");
}
else if (Comande.CompareTo("logoff") == 1)
{
System.Diagnostics.Process.Start("shutdown", "-l");
}
else if (Comande.CompareTo("abort") == 1)
{
System.Diagnostics.Process.Start("shutdown", "-a");
}
}
Like this:
Like Loading...
Related
About kishor datta gupta
Graduate Research Assistant at University of Memphis
Software Engineer at Silicon Orchard LTD.
Former Research Assistant at Lamar University
Former Software Engineer at Samsung R&D Institute Bangladesh
Studies Ph.D. Computer Science at University of Memphis
Studied Masters of Science in Computer Sciences at Lamar University
Studied BSC in CSE at Khulna University of Engineering and Technology
Studied HSC (completed) at Chittagang college 04-06
Studied High school at ST. Placid's High School'04
Studied Junior Secondary School at Saint Mary's School
Lives in Memphis, Tennessee
sir plz can u send the source code of this project to me
becoz i want same project for submission my email id is “tanvirs47@gmail.com”