A batch file is a script file ending in .BAT. A batch file can be run as a Windows Service using FireDaemon Pro, which lets you start the application automatically at boot prior to login, start multiple instances of the application and more. This HOWTO will show you how to set it up. You can also use Fusion to manage FireDaemon and other Windows services via a web browser.

Note: Check out this guide to learn how to run a batch file only once.

Batch File Setup Under FireDaemon Pro

First, create your batch file. For the purposes of this HOWTO we will run a batch file with the following, which will open Notepad. We will save this as NotepadBatchFile.bat. Be sure not to save the file as NotepadBatchFile.bat.txt, or the file will not run!

CD \Windows

Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.

Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note that no parameters are required.

  • Executable: The path to the NotepadBatchFile.bat file. Here we have used C:\Users\USERNAME\Downloads\NotepadBatchFile.bat.
  • Working Directory: The directory containing the NotepadBatchFile.bat file. Here we have used C:\Users\USERNAME\Downloads\NotepadBatchFile.bat.

Now click on the Settings tab. If you DON'T want to see foobar2000 running, uncheck the Interact with Desktop check box & select "Hidden" from the "Show Window" dropdown. If your batch file requires access to the program's registry settings, you must run your batch file as the user you installed the program as. In the Logon Account field type your username (e.g. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the software being run or specify which CPU or core your software will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).

Now click OK to finish setup and start your batch file!