Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

36 Converting via runfm > 36.5 Troubleshooting runfm processes > 36.5.7 Including runfm in a multi-step or scheduled process


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 Usage: BuildUG NN

rem where NN is the two-digit release number.

@echo off

if "%1" == "" goto NOARG

if not exist G:\OmniSys\UG\source\history.txt goto NOHIST

cd G:\OmniSys\UG\out

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

:WINHELP

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

copy /Y ftpug.txt ftp%1.txt

echo send ughlp%1.zip >> ftp%1.txt

echo bye >> 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.



36 Converting via runfm > 36.5 Troubleshooting runfm processes > 36.5.7 Including runfm in a multi-step or scheduled process