C# Server and Client!
-
Hey! I have some features build in but when i command two lines in nothing work! What is wrong at this two lines? Code from Server: //string[] get_Split = get.Split('~'); //int zeit = Convert.ToInt32(get_Split[1]); if (get.Contains("rHerunterfahren")) { System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString()); }
-
Hey! I have some features build in but when i command two lines in nothing work! What is wrong at this two lines? Code from Server: //string[] get_Split = get.Split('~'); //int zeit = Convert.ToInt32(get_Split[1]); if (get.Contains("rHerunterfahren")) { System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString()); }
-
Hey! I have some features build in but when i command two lines in nothing work! What is wrong at this two lines? Code from Server: //string[] get_Split = get.Split('~'); //int zeit = Convert.ToInt32(get_Split[1]); if (get.Contains("rHerunterfahren")) { System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString()); }
When you comment the two lines, zeit and get_Split aren't set to anything or even declared, so the code shouldn't build!
-
When you comment the two lines, zeit and get_Split aren't set to anything or even declared, so the code shouldn't build!
he should read out the time when he should shutdown the PC! When i don´t comment the two lines out i can´t open word or so. the client send no word to the Server when it is on!
-
he should read out the time when he should shutdown the PC! When i don´t comment the two lines out i can´t open word or so. the client send no word to the Server when it is on!
the client sent the server "shutdown" + textbox.text server: if (get=="shutdown") System.Diagnostics.Process.Start("shutdown", "-s -t " + zeit.ToString()); and the number in the textbox should he write behind -t. is there an other change to make it?