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. Database & SysAdmin
  3. System Admin
  4. Start .exe from a Server with params

Start .exe from a Server with params

Scheduled Pinned Locked Moved System Admin
sysadminquestionhelp
32 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.
  • L Lost User

    Mschauder wrote:

    Is it possible to start the .exe local on the server?

    Sorry but I don't understand your question. As I understand your original problem, you want client A to send a message to the server, the server will then send a WOL message to client B. From that point on both A & B can communicate with the server.

    It's time for a new signature.

    M Offline
    M Offline
    Mschauder
    wrote on last edited by
    #5

    A & B can communicate to the server. A can not communicate to B (directly). A send information to Server (with .exe which start a .exe that send WOL packet to B) Server starts .exe with WOL packet to B

    L 1 Reply Last reply
    0
    • M Mschauder

      A & B can communicate to the server. A can not communicate to B (directly). A send information to Server (with .exe which start a .exe that send WOL packet to B) Server starts .exe with WOL packet to B

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

      Mschauder wrote:

      A & B can communicate to the server. A can not communicate to B (directly). A send information to Server (with .exe which start a .exe that send WOL packet to B) Server starts .exe with WOL packet to B

      Which is what I said.

      It's time for a new signature.

      M 1 Reply Last reply
      0
      • L Lost User

        Mschauder wrote:

        A & B can communicate to the server. A can not communicate to B (directly). A send information to Server (with .exe which start a .exe that send WOL packet to B) Server starts .exe with WOL packet to B

        Which is what I said.

        It's time for a new signature.

        M Offline
        M Offline
        Mschauder
        wrote on last edited by
        #7

        possible, sry =) english is not my native language :sigh: do you have an idea how I can solve this? :laugh:

        L 1 Reply Last reply
        0
        • M Mschauder

          possible, sry =) english is not my native language :sigh: do you have an idea how I can solve this? :laugh:

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

          Mschauder wrote:

          english is not my native language

          No problem, we try to help everyone.

          Mschauder wrote:

          do you have an idea how I can solve this?

          I think you need to try and explain your problem again as I cannot see where your difficulty lies. You keep mentioning something about ".exe on server" but I cannot see what that means.

          It's time for a new signature.

          M 1 Reply Last reply
          0
          • L Lost User

            Mschauder wrote:

            english is not my native language

            No problem, we try to help everyone.

            Mschauder wrote:

            do you have an idea how I can solve this?

            I think you need to try and explain your problem again as I cannot see where your difficulty lies. You keep mentioning something about ".exe on server" but I cannot see what that means.

            It's time for a new signature.

            M Offline
            M Offline
            Mschauder
            wrote on last edited by
            #9

            :laugh: ok lets try again! I sit at home with a laptop. The laptop is connected to a server. Then I want connect with my PC at work (Remote). But my PC is turned off when I go home. So I have to turn it on. So I develop for our users a application that they only have to start 1 icon. the *.exe works if I have a direct link to the other client. So they start the "WOL_starter.exe" local on the laptop. the "WOL_starter.exe" should start the "WakeonLAN.exe" on the SERVER with the parameter (IP or MAC). But if "WOL_starter.exe" start the "WakeonLAN.exe" this .exe will start local on the laptop and the laptop had no direct link to the Client. I hope this will help ! :D

            L 2 Replies Last reply
            0
            • M Mschauder

              :laugh: ok lets try again! I sit at home with a laptop. The laptop is connected to a server. Then I want connect with my PC at work (Remote). But my PC is turned off when I go home. So I have to turn it on. So I develop for our users a application that they only have to start 1 icon. the *.exe works if I have a direct link to the other client. So they start the "WOL_starter.exe" local on the laptop. the "WOL_starter.exe" should start the "WakeonLAN.exe" on the SERVER with the parameter (IP or MAC). But if "WOL_starter.exe" start the "WakeonLAN.exe" this .exe will start local on the laptop and the laptop had no direct link to the Client. I hope this will help ! :D

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

              OK, I think we are making progress: Laptop (user) ----> Server ----> Desktop (remote)

              1. Laptop: runs WOL_starter.exe [IP address of Desktop]
              2. Laptop: WOL_starter.exe program sends message with IP address to the server
              3. Server: receives message (from Laptop) with IP address
              4. Server: sends WOL message to IP address (Desktop)
              5. Desktop: wakes up, boots and is ready ...
              6. Laptop: ?

              Mschauder wrote:

              But if "WOL_starter.exe" start the "WakeonLAN.exe" this .exe will start local on the laptop and the laptop had no direct link to the Client.

              This statement I do not understand, did I miss something?

              It's time for a new signature.

              M 1 Reply Last reply
              0
              • M Mschauder

                :laugh: ok lets try again! I sit at home with a laptop. The laptop is connected to a server. Then I want connect with my PC at work (Remote). But my PC is turned off when I go home. So I have to turn it on. So I develop for our users a application that they only have to start 1 icon. the *.exe works if I have a direct link to the other client. So they start the "WOL_starter.exe" local on the laptop. the "WOL_starter.exe" should start the "WakeonLAN.exe" on the SERVER with the parameter (IP or MAC). But if "WOL_starter.exe" start the "WakeonLAN.exe" this .exe will start local on the laptop and the laptop had no direct link to the Client. I hope this will help ! :D

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

                What a strange coincidence, is this[^] you?

                It's time for a new signature.

                M 1 Reply Last reply
                0
                • L Lost User

                  OK, I think we are making progress: Laptop (user) ----> Server ----> Desktop (remote)

                  1. Laptop: runs WOL_starter.exe [IP address of Desktop]
                  2. Laptop: WOL_starter.exe program sends message with IP address to the server
                  3. Server: receives message (from Laptop) with IP address
                  4. Server: sends WOL message to IP address (Desktop)
                  5. Desktop: wakes up, boots and is ready ...
                  6. Laptop: ?

                  Mschauder wrote:

                  But if "WOL_starter.exe" start the "WakeonLAN.exe" this .exe will start local on the laptop and the laptop had no direct link to the Client.

                  This statement I do not understand, did I miss something?

                  It's time for a new signature.

                  M Offline
                  M Offline
                  Mschauder
                  wrote on last edited by
                  #12

                  1. Laptop: runs WOL_starter.exe 2. Server runs WakeonLAN.exe 3. Desktop boot 4. Laptop use remote-desktop on the Desktop pc There are 2 *.exe -- 1. WOL_starter.exe -> *.exe on the Laptop -> communicate to the server and start "WakeonLAN.exe" with parameter IP. 2. WakeonLAN.exe -> *.exe on the server -> send WOL message to the Desktop PC

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    What a strange coincidence, is this[^] you?

                    It's time for a new signature.

                    M Offline
                    M Offline
                    Mschauder
                    wrote on last edited by
                    #13

                    heey!!! xD which coincidence you excactly mean :laugh:

                    L 1 Reply Last reply
                    0
                    • M Mschauder

                      heey!!! xD which coincidence you excactly mean :laugh:

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

                      Mschauder wrote:

                      which coincidence

                      Learning about two Germans with (almost) the same name in one day. :laugh:

                      It's time for a new signature.

                      M 1 Reply Last reply
                      0
                      • M Mschauder

                        1. Laptop: runs WOL_starter.exe 2. Server runs WakeonLAN.exe 3. Desktop boot 4. Laptop use remote-desktop on the Desktop pc There are 2 *.exe -- 1. WOL_starter.exe -> *.exe on the Laptop -> communicate to the server and start "WakeonLAN.exe" with parameter IP. 2. WakeonLAN.exe -> *.exe on the server -> send WOL message to the Desktop PC

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

                        OK, so we both agree on the sequence of operations and where the programs are, but now I am more confused: what is the problem?

                        It's time for a new signature.

                        M 1 Reply Last reply
                        0
                        • L Lost User

                          OK, so we both agree on the sequence of operations and where the programs are, but now I am more confused: what is the problem?

                          It's time for a new signature.

                          M Offline
                          M Offline
                          Mschauder
                          wrote on last edited by
                          #16

                          Well... 1. If the Laptop start the WOL_starter.exe the WOL_starter runs WakeonLAN.exe (from server) local on the laptop and this laptop can't communicate to the desktop PC! ;) so some error occurs. The User (Laptop) just should start my starter.exe and his desktop should turn on. They have no permission to connect to server via remote. The server should start his program on his system not on the Laptop :laugh:

                          L 1 Reply Last reply
                          0
                          • M Mschauder

                            Well... 1. If the Laptop start the WOL_starter.exe the WOL_starter runs WakeonLAN.exe (from server) local on the laptop and this laptop can't communicate to the desktop PC! ;) so some error occurs. The User (Laptop) just should start my starter.exe and his desktop should turn on. They have no permission to connect to server via remote. The server should start his program on his system not on the Laptop :laugh:

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

                            Mschauder wrote:

                            1. If the Laptop start the WOL_starter.exe the WOL_starter runs WakeonLAN.exe (from server) local on the laptop and this laptop can't communicate to the desktop PC!

                            This does not makes sense; how can the server start a program that runs on the laptop?

                            It's time for a new signature.

                            M 1 Reply Last reply
                            0
                            • L Lost User

                              Mschauder wrote:

                              1. If the Laptop start the WOL_starter.exe the WOL_starter runs WakeonLAN.exe (from server) local on the laptop and this laptop can't communicate to the desktop PC!

                              This does not makes sense; how can the server start a program that runs on the laptop?

                              It's time for a new signature.

                              M Offline
                              M Offline
                              Mschauder
                              wrote on last edited by
                              #18

                              starter.exe send parameter to the wol.exe on the server and start it. But if I start the starter.exe local on my laptop, the WOL.exe will run there, too.

                              L 1 Reply Last reply
                              0
                              • M Mschauder

                                starter.exe send parameter to the wol.exe on the server and start it. But if I start the starter.exe local on my laptop, the WOL.exe will run there, too.

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

                                Mschauder wrote:

                                starter.exe send parameter to the wol.exe on the server and start it. But if I start the starter.exe local on my laptop, the WOL.exe will run there, too.

                                These two statements are mutually exclusive; if statement 1 is true how can statement 2 also be true?

                                It's time for a new signature.

                                M 1 Reply Last reply
                                0
                                • L Lost User

                                  Mschauder wrote:

                                  starter.exe send parameter to the wol.exe on the server and start it. But if I start the starter.exe local on my laptop, the WOL.exe will run there, too.

                                  These two statements are mutually exclusive; if statement 1 is true how can statement 2 also be true?

                                  It's time for a new signature.

                                  M Offline
                                  M Offline
                                  Mschauder
                                  wrote on last edited by
                                  #20

                                  wuah :doh: again: I sit with my laptop in the sun, enjoy the sun :laugh: connect to network with vpn. Now I have a connectivity to the Server. I want to work Remote on my desktop pc from work. But the desktop pc is turned off. Now I want to start my desktop pc to connect to it! I start "starter.exe" and my desktop pc turns on. ----- Now how I realize this: I have 2 .exe 1. starter.exe is on my laptop 2. WOL.exe is on the server ----- Now how my tool works: starter.exe start the WOL.exe on the server with IP or MAC adress from my desktop pc as a parameter. WOL.exe sends a magic packet to desktop and this turns on! ----- Problem: starter.exe starts on my laptop starter.exe starts wol.exe which lay on the server but if starter.exe start wol.exe, wol.exe will be started on my laptop instead of the server. And cause my laptop is in an another subnet my laptop can not root packets directly. I hope this would help ;P

                                  L 1 Reply Last reply
                                  0
                                  • L Lost User

                                    Mschauder wrote:

                                    which coincidence

                                    Learning about two Germans with (almost) the same name in one day. :laugh:

                                    It's time for a new signature.

                                    M Offline
                                    M Offline
                                    Mschauder
                                    wrote on last edited by
                                    #21

                                    just nickname :P real name is different ;P oh no, what you must think about germany :doh:

                                    1 Reply Last reply
                                    0
                                    • M Mschauder

                                      wuah :doh: again: I sit with my laptop in the sun, enjoy the sun :laugh: connect to network with vpn. Now I have a connectivity to the Server. I want to work Remote on my desktop pc from work. But the desktop pc is turned off. Now I want to start my desktop pc to connect to it! I start "starter.exe" and my desktop pc turns on. ----- Now how I realize this: I have 2 .exe 1. starter.exe is on my laptop 2. WOL.exe is on the server ----- Now how my tool works: starter.exe start the WOL.exe on the server with IP or MAC adress from my desktop pc as a parameter. WOL.exe sends a magic packet to desktop and this turns on! ----- Problem: starter.exe starts on my laptop starter.exe starts wol.exe which lay on the server but if starter.exe start wol.exe, wol.exe will be started on my laptop instead of the server. And cause my laptop is in an another subnet my laptop can not root packets directly. I hope this would help ;P

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

                                      Mschauder wrote:

                                      I hope this would help

                                      Well you still seem to be saying: "I do this and it works". Then you say: "I do this and it does not work". So where are we? Let us go back to the original sequence.

                                      1. Laptop: run starter.exe (on the laptop)
                                      2. Laptop: starter.exe sends a message to the server with the IP address of the desktop
                                      3. Laptop: starter.exe terminates - its work is done
                                      4. Server: receives the message and runs wol.exe (on the server) with the desktop IP address as parameter
                                      5. Server: wol.exe sends a WOL message to the IP address of the desktop
                                      6. Server: wol.exe terminates - its work is done
                                      7. Desktop: receives WOL message and boots
                                      8. Laptop, Server and Desktop are now all booted and ready for action

                                      Or maybe this is not what happens?

                                      It's time for a new signature.

                                      M 1 Reply Last reply
                                      0
                                      • L Lost User

                                        Mschauder wrote:

                                        I hope this would help

                                        Well you still seem to be saying: "I do this and it works". Then you say: "I do this and it does not work". So where are we? Let us go back to the original sequence.

                                        1. Laptop: run starter.exe (on the laptop)
                                        2. Laptop: starter.exe sends a message to the server with the IP address of the desktop
                                        3. Laptop: starter.exe terminates - its work is done
                                        4. Server: receives the message and runs wol.exe (on the server) with the desktop IP address as parameter
                                        5. Server: wol.exe sends a WOL message to the IP address of the desktop
                                        6. Server: wol.exe terminates - its work is done
                                        7. Desktop: receives WOL message and boots
                                        8. Laptop, Server and Desktop are now all booted and ready for action

                                        Or maybe this is not what happens?

                                        It's time for a new signature.

                                        M Offline
                                        M Offline
                                        Mschauder
                                        wrote on last edited by
                                        #23

                                        It doesn't work... I try to describe like you :P 1. Laptop: run starter.exe 2. Laptop: starter.exe start wol.exe with ip adress of the desktop 3. Laptop: starter.exe terminates now the problem begin 4. Because starter.exe runs wol.exe the wol.exe will run on the laptop... what should do: 4. Server: runs wol.exe 5. Desktop: boots 6. Laptop: connect to desktop and is ready for action --- for example sitting in school your neighbour looks bored then you start a program like media player and this program should pop up on HIS screen not yours! If I start media player (installed on his desktop pc) it will pop up on my screen, this I wouldn't have...

                                        L 1 Reply Last reply
                                        0
                                        • M Mschauder

                                          It doesn't work... I try to describe like you :P 1. Laptop: run starter.exe 2. Laptop: starter.exe start wol.exe with ip adress of the desktop 3. Laptop: starter.exe terminates now the problem begin 4. Because starter.exe runs wol.exe the wol.exe will run on the laptop... what should do: 4. Server: runs wol.exe 5. Desktop: boots 6. Laptop: connect to desktop and is ready for action --- for example sitting in school your neighbour looks bored then you start a program like media player and this program should pop up on HIS screen not yours! If I start media player (installed on his desktop pc) it will pop up on my screen, this I wouldn't have...

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

                                          Mschauder wrote:

                                          4. Because starter.exe runs wol.exe the wol.exe will run on the laptop...

                                          Well this is obviously wrong. As I showed in my previous posts starter.exe should send a message to the server with the IP address, the server then runs wol.exe to send the WOL message to the desktop machine.

                                          Mschauder wrote:

                                          sitting in school your neighbour looks bored then you start a program like media player and this program should pop up on HIS screen not yours!

                                          I'm not sure exactly how you would do this unless you have some program running on your neighbour's PC that will accept commands and act on them. In general this is considered to be hacking and is not encouraged.

                                          It's time for a new signature.

                                          M 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