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 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
                  • L Lost User

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

                    Well... ... thanks a lot but you don't know what I mean :laugh: I solved this otherwise 3 *.exe 1. starter.exe *new* 2. RemoteStarter.exe (some Telnet function to start Software on other systems) 3. WOL.exe There is no other solution... or how would you solve something like this when a user is not allowed to use VNC to view the server. And they know nothing about wake on LAN ;P

                    L 1 Reply Last reply
                    0
                    • M Mschauder

                      Well... ... thanks a lot but you don't know what I mean :laugh: I solved this otherwise 3 *.exe 1. starter.exe *new* 2. RemoteStarter.exe (some Telnet function to start Software on other systems) 3. WOL.exe There is no other solution... or how would you solve something like this when a user is not allowed to use VNC to view the server. And they know nothing about wake on LAN ;P

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

                      Mschauder wrote:

                      thanks a lot but you don't know what I mean

                      I think I do.

                      Mschauder wrote:

                      or how would you solve something like this when a user is not allowed to use VNC to view the server. And they know nothing about wake on LAN

                      I would not solve it. If you are not allowed access to the server then you should not try to hack into it. Case closed, I think.

                      It's time for a new signature.

                      M 1 Reply Last reply
                      0
                      • L Lost User

                        Mschauder wrote:

                        thanks a lot but you don't know what I mean

                        I think I do.

                        Mschauder wrote:

                        or how would you solve something like this when a user is not allowed to use VNC to view the server. And they know nothing about wake on LAN

                        I would not solve it. If you are not allowed access to the server then you should not try to hack into it. Case closed, I think.

                        It's time for a new signature.

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

                        Nobody try to hack into it... its just ja medium that both (Laptop & desktop) can reach... But would you give an user the chance to "play" on a server? :confused:

                        L 1 Reply Last reply
                        0
                        • M Mschauder

                          Nobody try to hack into it... its just ja medium that both (Laptop & desktop) can reach... But would you give an user the chance to "play" on a server? :confused:

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

                          Mschauder wrote:

                          But would you give an user the chance to "play" on a server?

                          Sorry, but I am totally lost now; I have no idea what you are trying to do as it seems the description changes with every posted message.

                          It's time for a new signature.

                          M 1 Reply 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

                            J Offline
                            J Offline
                            Jorgen Andersson
                            wrote on last edited by
                            #29

                            Pretty confusing thread! Anyway, I give it a try. You need to create a service to install on the server that listens on a predefined port for messages on which desktop computer to start. As this service starts automatically at the start of the server the users don't need to interfere with the server, they only need to run a program on their home computer connecting to this service on the server, which tell their desktop to start via WOL.

                            "When did ignorance become a point of view" - Dilbert

                            L 1 Reply Last reply
                            0
                            • J Jorgen Andersson

                              Pretty confusing thread! Anyway, I give it a try. You need to create a service to install on the server that listens on a predefined port for messages on which desktop computer to start. As this service starts automatically at the start of the server the users don't need to interfere with the server, they only need to run a program on their home computer connecting to this service on the server, which tell their desktop to start via WOL.

                              "When did ignorance become a point of view" - Dilbert

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

                              Which is exactly what I suggested more than once!

                              It's time for a new signature.

                              M 1 Reply Last reply
                              0
                              • L Lost User

                                Which is exactly what I suggested more than once!

                                It's time for a new signature.

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

                                Yes I know... But I solved this otherwise! easier :laugh:

                                1 Reply Last reply
                                0
                                • L Lost User

                                  Mschauder wrote:

                                  But would you give an user the chance to "play" on a server?

                                  Sorry, but I am totally lost now; I have no idea what you are trying to do as it seems the description changes with every posted message.

                                  It's time for a new signature.

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

                                  "play" means the user is on the server with remote software.

                                  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