Friday, June 17, 2016

Updated DOS Batch File

This is the DOS batch file, verbatim, that I use to compile my RoboHelp project. I am putting it on this blog as a backup.

cd\
s:
SET Today=%Date:~10,4%_%Date:~4,2%_%Date:~7,2%
REM | Create the Logs folder first
md "S:\Technical Documentation\DISARECO\__%today%\_Logs"
REM | The No Condition folders
md "S:\Technical Documentation\DISARECO\__%today%\NoConditions_CHM"
md "S:\Technical Documentation\DISARECO\__%today%\NoConditions_RH"
md "S:\Technical Documentation\DISARECO\__%today%\NoConditions_PDF"
md "S:\Technical Documentation\DISARECO\__%today%\NoConditions_WH"
REM | The NOT Nonsecure
md "S:\Technical Documentation\DISARECO\__%today%\CHM_Online_Internal"
md "S:\Technical Documentation\DISARECO\__%today%\PDF_Internal"
md "S:\Technical Documentation\DISARECO\__%today%\RH_Online_Internal"
md "S:\Technical Documentation\DISARECO\__%today%\WH_Online_Internal"
REM | The NOT Secure
md "S:\Technical Documentation\DISARECO\__%today%\PDF_External"
md "S:\Technical Documentation\DISARECO\__%today%\CHM_Online_External"
md "S:\Technical Documentation\DISARECO\__%today%\RH_Online_External"
md "S:\Technical Documentation\DISARECO\__%today%\WH_Online_External"
REM | Now, compile the outputs
cd\
c:
cd "C:\Program Files (x86)\Adobe\Adobe RoboHelp 2015\RoboHTML"
REM | The No Condition outputs
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "NoConditions_RH" -o "S:\Technical Documentation\DISARECO\__%today%\NoConditions_RH" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_RH.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "NoConditions_WH" -o "S:\Technical Documentation\DISARECO\__%today%\NoConditions_WH" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_WH.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "NoConditions_PDF" -o "S:\Technical Documentation\DISARECO\__%today%\NoConditions_PDF" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_PDF.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "NoConditions_CHM" -o "S:\Technical Documentation\DISARECO\__%today%\NoConditions_CHM" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_CHM.txt"
REM | Internal-Facing
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "PDF_Internal" -o "S:\Technical Documentation\DISARECO\__%today%\PDF_Internal" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_PDF_Internal.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "RH_Online_Internal" -o "S:\Technical Documentation\DISARECO\__%today%\RH_Online_Internal" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_RH_Online_Internal.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "WH_Online_Internal" -o "S:\Technical Documentation\DISARECO\__%today%\WH_Online_Internal" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_WH_Online_Internal.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "CHM_Online_Internal" -o "S:\Technical Documentation\DISARECO\__%today%\CHM_Online_Internal" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_CHM_Online_Internal.txt"
REM | External-Facing
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "WH_Online_External" -o "S:\Technical Documentation\DISARECO\__%today%\WH_Online_External" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_WH_Online_External.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "RH_Online_External" -o "S:\Technical Documentation\DISARECO\__%today%\RH_Online_External" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_RH_Online_External.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "PDF_External" -o "S:\Technical Documentation\DISARECO\__%today%\PDF_External" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_PDF_External.txt"
rhcl "c:\rh\DRM\DisasterRecoveryManual.xpj" -l "CHM_Online_External" -o "S:\Technical Documentation\DISARECO\__%today%\CHM_Online_External" -g "S:\Technical Documentation\DISARECO\__%today%\_Logs\%TODAY%_CHM_Online_External.txt"

No comments: