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.
  • M Offline
    M Offline
    Mschauder
    wrote on last edited by
    #1

    Hey guys, I programmed a tool which sends a WOL packet to boot a Client. 3 devices: 1. laptop (at home) 2. Server 3. Desktop PC I connect with the laptop to the network with vpn. So I can reach the server, but not the desktop. I have to turn on the desktop pc to run a remote software from laptop to reach the client. But now the problem: I can not boot desktop pc from laptop! So I have the application on a server which both can reach. There are 2 .exe 1. starter.exe (start the WOL.exe on server) 2. WOL.exe (send WOL message to desktop pc) How can I start the WOL.exe local on the server? (If I run it with the starter.exe it would run local on the Laptop) greets, Mschauder

    modified on Thursday, July 15, 2010 12:54 AM

    L J 2 Replies Last reply
    0
    • M Mschauder

      Hey guys, I programmed a tool which sends a WOL packet to boot a Client. 3 devices: 1. laptop (at home) 2. Server 3. Desktop PC I connect with the laptop to the network with vpn. So I can reach the server, but not the desktop. I have to turn on the desktop pc to run a remote software from laptop to reach the client. But now the problem: I can not boot desktop pc from laptop! So I have the application on a server which both can reach. There are 2 .exe 1. starter.exe (start the WOL.exe on server) 2. WOL.exe (send WOL message to desktop pc) How can I start the WOL.exe local on the server? (If I run it with the starter.exe it would run local on the Laptop) greets, Mschauder

      modified on Thursday, July 15, 2010 12:54 AM

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

      The simplest answer would be to send some message to the server that includes the parameter information. The server will recognise the message and construct a WOL packet which it then sends to the requisite IP address. Or did I misunderstand your question?

      It's time for a new signature.

      M 1 Reply Last reply
      0
      • L Lost User

        The simplest answer would be to send some message to the server that includes the parameter information. The server will recognise the message and construct a WOL packet which it then sends to the requisite IP address. Or did I misunderstand your question?

        It's time for a new signature.

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

        you don't! but how can I do this? :D Is it possible to start the .exe local on the server? Cause Client A send his information to the server, the server start my program now... but local on the machine from Client A... Client A can not reach Client B directly. If I can start the .exe on the server I have no problems X|

        L 1 Reply Last reply
        0
        • M Mschauder

          you don't! but how can I do this? :D Is it possible to start the .exe local on the server? Cause Client A send his information to the server, the server start my program now... but local on the machine from Client A... Client A can not reach Client B directly. If I can start the .exe on the server I have no problems X|

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

          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 1 Reply Last reply
          0
          • 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
                                          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