VBScript is a scripting language included with Windows that is used to automate tasks. A VBScript script can be run as a Windows Service using FireDaemon Pro, which allows you to have the application start 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.
VBScript Setup Under FireDaemon Pro
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 the required parameters.
Executable: The path to your wscript.exe file. Here, the path is C:\Windows\System32\wscript.exe.
Working Directory: The directory in which your script resides. For the purposes of this HOWTO, the path is C:\VBScript.
- Parameters: The name of your VBScript script including its extension (e.g. example.vbs)
Now click on the Settings tab. If you DON'T want to see the VBScript running, uncheck the Interact with Desktop check box & select "Hidden" from the "Show Window" dropdown. You must run VBScript as the user that you intend to use it 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 must set the job type to "Global" so that child processes are terminated properly when the service is stopped or restarted. You can change the Process Priority to allocate more CPU time to your VBScript or specify which CPU or core your VBScript will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
Now click on the OK button to install and start your VBScript!