HOW-TO
Automate Analog with Batch Files and
Windows® 2000 Task Scheduler 

This HOW-TO written by Rick McGuinness MCSE + I, MCT of Rix-Web.com
version 1.0, April 12, 2001

Purpose

Analog is claimed as the most popular web log file analyzer in the world. (Details). Whether running multiple virtual hosts or a single root web server, a useful feature is to run Analog at pre-determined times automatically. This can be accomplished with a batch file and the Windows® 2000 Task Scheduler.

System

This example was developed and tested using a Windows® 2000 Advanced Server (Service Pack 1), Internet Information Server 5.0 and Analog 4.90 beta 4.

Batch File Example

Each Windows® batch file contains:

To create a Windows® batch file:

A Windows® Batch file might look like.

# rix.bat
#

call analog.exe +g"rix.cfg" -G

The " +g"rix.cfg" -G " tells Analog to use the "rix.cfg" config file and to ignore the default analog.cfg file. You may use any of the command line switches in your batch file.

Analog will expect to find the config file (rix.cfg) in the same directory as analog.exe and rix.bat. The batch file can be executed via the command line, double-clicking on a shortcut or double-clicking on the batch file in Windows® Explorer.

If this batch file were executed, it would open a DOS window, run the program and close the window. If you were to add a second line to the batch file "@Pause", it would open a DOS wind