Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: VPS: how to run as system a .exe tool as long as the server is UP  (Read 5012 times)

0 Members and 1 Guest are viewing this topic.

karlosss

    Topic Starter


    Beginner

    • Experience: Beginner
    • OS: Windows XP
    So i have a Tool.exe i run it through a script ''Script.bat''.Now all i want is to run it day and night ''as SYSTEM'',as long as the server is UP!! even if the other 4 administrators restarts or log off my session,how to do that?can someone help me? I strugle doing this for more than 6 months with poor results,i tried NSSM.exe but it only works when the vps is restarted,and not when i'm logged off.

    thank you!!!!! :o

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: VPS: how to run as system a .exe tool as long as the server is UP
    « Reply #1 on: November 28, 2016, 06:02:06 AM »
    You might need to wrap this program around a service name. Services can run in ways that batches cant.

    https://www.coretechnologies.com/products/AlwaysUp/Apps/RunBatchFileAsAService.html

    karlosss

      Topic Starter


      Beginner

      • Experience: Beginner
      • OS: Windows XP
      Re: VPS: how to run as system a .exe tool as long as the server is UP
      « Reply #2 on: November 29, 2016, 09:39:59 AM »
      working fine but how can i stop this??? i receive same message for windows 7 and server 2008

      karlosss

        Topic Starter


        Beginner

        • Experience: Beginner
        • OS: Windows XP
        Re: VPS: how to run as system a .exe tool as long as the server is UP
        « Reply #3 on: November 29, 2016, 09:42:36 AM »
        You might need to wrap this program around a service name. Services can run in ways that batches cant.

        https://www.coretechnologies.com/products/AlwaysUp/Apps/RunBatchFileAsAService.html

        working fine but how can i stop this??? i receive same message for windows 7 and server 2008


        when i press View the message i can see my tool running

        DaveLembke



          Sage
        • Thanked: 662
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: VPS: how to run as system a .exe tool as long as the server is UP
        « Reply #4 on: November 29, 2016, 11:46:42 AM »
        Interesting typo in the window "form" vs "from"

        More info here on hiding it... https://blogs.msdn.microsoft.com/patricka/2011/03/14/troubleshooting-interactive-services-detection/

        karlosss

          Topic Starter


          Beginner

          • Experience: Beginner
          • OS: Windows XP
          Re: VPS: how to run as system a .exe tool as long as the server is UP
          « Reply #5 on: November 29, 2016, 12:56:44 PM »
          Interesting typo in the window "form" vs "from"

          More info here on hiding it... https://blogs.msdn.microsoft.com/patricka/2011/03/14/troubleshooting-interactive-services-detection/

          I use a .bat script for a .exe tool
          and yes i receive this:



          When i check this i see nothing,is empty:


          « Last Edit: November 29, 2016, 01:11:09 PM by karlosss »

          karlosss

            Topic Starter


            Beginner

            • Experience: Beginner
            • OS: Windows XP