Building Targets Using Windows Services
You can build Doc-To-Help targets using Windows Services such as the Task Scheduler or TFS Build. This is done using C1D2HBatch.exe and C1D2HAgent.exe, which can be found at C:\Program Files (x86)\MadCap Software\MadCap DocToHelp 6.
-
An interactive user should log on and launch C1D2HAgent.exe.
C1D2HAgent.exe must be run on the same machine as the Windows Service. An interactive user has the rights to interact with the machine using the keyboard, mouse, etc. (Services are generally not interactive.)
-
Start C1D2HBatch.exe with the argument -buildagent.
Example
"C:\Program Files (x86)\MadCap Software\MadCap DocToHelp 6\C1D2HBatch.exe" -build "C:\Users\[InteractiveUser]\Documents\My Doc-To-Help Projects\Samples\EmployeeHandbook\EmployeeHandbook.d2h" "Employee Handbook Manual" -buildagent
This can be started by any Windows Service.
The interactive user who started C1D2HAgent.exe:
- Must be logged in when C1D2HBatch.exe is running.
- Must have read and write permissions for the project folder and its subfolders.