Search This Blog

Thursday, May 26, 2016

Back to DOS-Land

This is the DOS batch file I am using on a daily basis to compile my RoboHelp project at work. I have one project - project.xpj (no, that's not the real name - I changed it for the purpose of posting the code here). I think it's pretty sweet to be back to doing similar work that I was doing from 1998 - 2010 - using Dreamweaver to code HTML, CSS, and JavaScript. I don't really have a need to author content in MS Word, which I miss a little, but not enough to dwell in misery because I don't work in MS Word on a daily basis. It's working great and makes the process of generating my deliverables so much easier than using the RoboHelp user interface. Here's the psuedo-batch file code:

cd\
s:
SET Today=%Date:~10,4%_%Date:~4,2%_%Date:~7,2%
REM | Create the Logs folder first
md "S:\TDoc\DISARECO\__%today%\_Logs"
REM | The No Condition folders
md "S:\TDoc\DISARECO\__%today%\NoConditions_CHM"
md "S:\TDoc\DISARECO\__%today%\NoConditions_RH"
md "S:\TDoc\DISARECO\__%today%\NoConditions_PDF"
md "S:\TDoc\DISARECO\__%today%\NoConditions_WH"
REM | The NOT Nonsecure
md "S:\TDoc\DISARECO\__%today%\CHM_Online_Internal"
md "S:\TDoc\DISARECO\__%today%\PDF_Internal"
md "S:\TDoc\DISARECO\__%today%\RH_Online_Internal"
md "S:\TDoc\DISARECO\__%today%\WH_Online_Internal"
REM | The NOT Secure
md "S:\TDoc\DISARECO\__%today%\PDF_External"
md "S:\TDoc\DISARECO\__%today%\CHM_Online_External"
md "S:\TDoc\DISARECO\__%today%\RH_Online_External"
md "S:\TDoc\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:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "NoConditions_RH" -o "S:\TDoc\DISARECO\__%today%\NoConditions_RH" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_RH.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "NoConditions_WH" -o "S:\TDoc\DISARECO\__%today%\NoConditions_WH" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_WH.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "NoConditions_PDF" -o "S:\TDoc\DISARECO\__%today%\NoConditions_PDF" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_PDF.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "NoConditions_CHM" -o "S:\TDoc\DISARECO\__%today%\NoConditions_CHM" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_NoConditions_CHM.txt"

REM | Internal-Facing

rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "PDF_Internal" -o "S:\TDoc\DISARECO\__%today%\PDF_Internal" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_PDF_Internal.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "RH_Online_Internal" -o "S:\TDoc\DISARECO\__%today%\RH_Online_Internal" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_RH_Online_Internal.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "WH_Online_Internal" -o "S:\TDoc\DISARECO\__%today%\WH_Online_Internal" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_WH_Online_Internal.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "CHM_Online_Internal" -o "S:\TDoc\DISARECO\__%today%\CHM_Online_Internal" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_CHM_Online_Internal.txt"

REM | External-Facing

rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "WH_Online_External" -o "S:\TDoc\DISARECO\__%today%\WH_Online_External" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_WH_Online_External.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "RH_Online_External" -o "S:\TDoc\DISARECO\__%today%\RH_Online_External" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_RH_Online_External.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "PDF_External" -o "S:\TDoc\DISARECO\__%today%\PDF_External" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_PDF_External.txt"
rhcl "C:\Users\me\Desktop\DRM\DRM\Project.xpj" -l "CHM_Online_External" -o "S:\TDoc\DISARECO\__%today%\CHM_Online_External" -g "S:\TDoc\DISARECO\__%today%\_Logs\%TODAY%_CHM_Online_External.txt"

No comments: