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:

    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