Run any Batch File as a Windows Service with AlwaysUp

How to Start & Run any Batch File (*.BAT) as a Windows Service with AlwaysUp

Kick off your batch file when your PC boots. Automatically restart it when it stops.

AlwaysUp includes advanced tools to make your batch file start at boot and run 24/7.

The Application Advisor will help you install your batch file as a Windows Service with all our recommended settings — in just a few clicks. Simply select Advisor from the Application menu and follow the straightforward prompts.

To set up a batch file to run as a Windows Service with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. Start AlwaysUp.

  3. Select Application > Add to open the Add Application window:

    Add Application

  4. On the General tab:

    • In the Application field, enter the full path to the batch file. We have chosen our sample batch file, C:\BatchFile\RunNotepad.bat, which contains the following instructions (to launch the Notepad application):

      C:
      CD \Windows
      .\notepad.exe
      
    • In the Name field, enter the name that you will call the batch file application in AlwaysUp. We have used My Batch File but you can specify virtually anything you like.

    Batch File Windows Service: General Tab

  5. If your batch file calls a program that needs access to its registry settings, etc., then you will want to click over to the Logon tab and enter the user name and password of the account that can run the software normally.

    Batch File Windows Service: LogOn Tab

  6. Click the Save button. In a couple of seconds, an application called My Batch File will show up in the AlwaysUp window. It is not yet running though.

    Batch File Windows Service: Created

  7. To start the batch file, choose Application > Start "My Batch File".

    Batch File Windows Service: Running

    The batch file is currently running in Session 0. On Windows XP and Server 2003, we can see it by logging on to that session. On Windows 8/7/Vista and Server 2012/2008, we can see it if we go to the isolated Session 0 by selecting Tools > Switch to Session 0:

    Batch File Windows Service: Session 0

  8. That's it! Next time your computer boots, the batch file will be launched immediately, before anyone logs on. We encourage you to explore the many other settings that may be appropriate for your environment.



Batch file not working properly as a Windows Service?

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Review the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.
  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.5 New!

8.0 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!