Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 36 Converting via runfm > 36.5 Troubleshooting runfm processes > 36.5.7 Including runfm in a multi-step or scheduled process
Because runfm
can be invoked in a .bat
file, you can include
runfm
commands interspersed with
other commands. For example, we use BuildUG.bat
to prepare all editions of the Mif2Go User's Guide for release. The first part of the script generates
and archives the WinHelp edition, then uploads the archive to a server
(the runfm
command and its arguments
actually are all on one line):
rem where NN is the two-digit release number.
if not exist G:\OmniSys\UG\source\history.txt goto NOHIST
echo BuildUG %1 starting %DATE% at %TIME% > ug33v%1.log
copy /Y /V G:\OmniSys\UG\source\history.txt G:\OmniSys\UG\out
copy /Y G:\OmniSys\UG\cfg\*.ini G:\OmniSys\UG\cfg\CFGbackup\*.i%1
runfm -book G:\OmniSys\UG\usergd.book -project WinHelp
-close all -log ug33v%1.log > ug33v%1.log 2>&1
if not exist G:\OmniSys\UG\hlp\ugmif2go.hlp goto NOWIN
copy /Y G:\OmniSys\UG\hlp\*.ini G:\OmniSys\UG\hlp\WHbackup\*.i%1
echo send ughlp%1.zip >> ftp%1.txt
ftp -i -s:g:\omnisys\ug\out\ftp%1.txt
echo ughlp%1.zip finished uploading at %TIME% >> ug33v%1.log
You can include runfm
commands in a .bat
file that you set up as
a Windows Scheduled Task. For example, you could use runfm
to periodically output MIF versions of all the files in a book, then
process the MIF files with another application, such as an archive or
index utility. In fact, you could use just the evaluation version of
Mif2Go to produce MIF output via runfm
.