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.

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

  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):

      CD \Windows
    • 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 9.7 New!

4.6 MB Installer
  • Unrestricted 30-day trial for new users; upgrade for existing users
  • Windows 10/8.1/8/7/XP & Windows Server 2012 R2/2008/2003
  • How to Install | EULA
Our customers include...

Compatible with Windows 10 (32 & 64-bit)

Windows Server 2012 Certified (32 & 64-bit)

Windows 8 Compatible (32 & 64-bit)

Compatible with Windows 7 (32 & 64-bit)

Works with Windows Server 2008 R2 (32 & 64-bit)

Over 68,000 installations, and counting!
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 10+ years!