FireDaemon Pro can run applications off drives that have been mapped with subst (or applications that require a subst drive for some part of their functionality). subst allows you to associate a path with a drive letter. This allows for long complex paths to simplified into a simple drive mapping.

At a command line, type:

subst n: m:\some\path


Remember you need to use the correct version of subst on 64-bit systems depending on the executable you are launching. If you are launching a 32-bit application on a 64-bit platform use:

C:\WINDOWS\SysWOW64\subst.exe


If you are launching a 64-bit application on a 64-bit platform (or 32-bit application on a 32-bit system) use:

C:\WINDOWS\System32\subst.exe


All the usual caveats apply if you use subst on a network drive. You will need to map the network drive first and then subst it.

In order to run an application off a subst drive you need to create a Pre-Service. To do this, start the FireDaemon GUI, create a new service (Ctrl+N) then click on the Pre / Post-Service tab.

Click the Insert button in the Pre-Service Programs section. You would then enter:

Executable: C:\Windows\system32\subst.exe
Working Directory: C:\Windows\System32
Parameters: n: m:\some\path
Execution Time: 3000
Run Program: Before Event


Change the parameters line to reflect you desired drive letter and path to subst.


Then click this Insert button in the Post-Service Programs section. You would then enter:

Executable: C:\Windows\system32\subst.exe
Working Directory: C:\Windows\System32
Parameters: n: /d
Execution Time: 3000
Run Program: After Event


This will cause the drive to be mapped prior to running the executable and the mapping removed when the service is stopped.