-
Download and install AlwaysUp, if necessary.
-
Start AlwaysUp.
-
Select Application > Advisor to open the Application Advisor:
-
Click Next to move past the welcome screen:
-
Choose Batch File from the list of applications and click Next:
-
Enter the full path to the batch file you want to run as a service. You can also click the triple-dots button on the right to browse for the .BAT file:
Click Next to move on.
-
On this screen, enter the username and password of a Windows account that you know can run the batch file:
We recommend a normal user account for now — probably yours if you can run the batch file. But if you'd rather run in the powerful
LocalSystem account
(the default for Windows Services), you can make that change later.
Click Next to move on.
-
As the screen says, the Advisor has composed the best settings to run your script as a Windows Service.
Click Next to open the Add Application window with all the particulars.
-
At this point, the Add Application window contains all the recommended settings for running your batch file 24/7 after your PC boots.
You can cycle through the tabs and review the options that have been chosen.
And on the General tab, feel free to change the name to something you prefer.
When you're ready, click Save to record your new batch file service:
-
In a few seconds, a new entry for your batch file will show up in the AlwaysUp window. Your script is now installed as a Windows Service.
-
To launch your batch file as a service, choose Application > Start.
The entry will soon change to Running and your script will be active in the background:
-
That's it! Next time your computer boots, the batch file will be launched immediately, before anyone logs on.
By default, AlwaysUp runs your batch file 24/7. And if your script exits, AlwaysUp will restart it immediately.
But if your batch file stops and you want to pause before restarting it (or run it only at defined times), you can instruct AlwaysUp to do that instead. Here's how: