Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Server and Client!

C# Server and Client!

Scheduled Pinned Locked Moved C#
questioncsharpsysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nhqlbaislwfiikqraqnm
    wrote on last edited by
    #1

    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()); }

    L K 2 Replies Last reply
    0
    • N nhqlbaislwfiikqraqnm

      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()); }

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What are you trying to do with your code? :)

      Life is a stage and we are all actors!

      1 Reply Last reply
      0
      • N nhqlbaislwfiikqraqnm

        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()); }

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        When you comment the two lines, zeit and get_Split aren't set to anything or even declared, so the code shouldn't build!

        N 1 Reply Last reply
        0
        • K Keith Barrow

          When you comment the two lines, zeit and get_Split aren't set to anything or even declared, so the code shouldn't build!

          N Offline
          N Offline
          nhqlbaislwfiikqraqnm
          wrote on last edited by
          #4

          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!

          N 1 Reply Last reply
          0
          • N nhqlbaislwfiikqraqnm

            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!

            N Offline
            N Offline
            nhqlbaislwfiikqraqnm
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups