gwclientid-current.bat
Generated on Tue Dec 05 17:44:03 Eastern Standard Time 2006 from gwclientid-current.bat
@echo off
TITLE GWCLIENTID-CURRENT.BAT: Create "Current" frequency and cross-tab files from GWCLIENTID.CSV file
echo.
echo Program : GWCLIENTID-CURRENT.BAT
echo Purpose : Create "Current" frequency and cross-tab files from GWCLIENTID.CSV file
echo Author : Bob Jonkman [bjonkman@sobac.com]
echo Date : 4 October 2004
echo.
goto begin
Parameter : %1 - Name of file to process
:begin
if "%1" == "" goto help
if "%1" == "?" goto help
if "%1" == "/h" goto help
if "%1" == "/H" goto help
if "%1" == "-h" goto help
if "$1" == "-H" goto help
echo Getting current version frequencies for %1 ...
gawk -f gwclientid-version-freq.awk -f library.awk %1 > current-version-freq.csv
echo Getting current platform-PO crosstab for %1 ...
gawk -f xtab.awk -f library.awk -v XFIELDNAME="User Platform" -v YFIELDNAME=Postoffice %1 > current-xtab-po-platform.csv
echo Getting current version-PO crosstab for %1 ...
gawk -f xtab.awk -f library.awk -v XFIELDNAME="GroupWise Client Release" -v YFIELDNAME=Postoffice %1 > current-xtab-po-version.csv
echo Getting current PO-BU crosstab for %1 ...
gawk -f xtab.awk -f library.awk -v XFIELDNAME=Postoffice -v YFIELDNAME=BU %1 > current-xtab-bu-po.csv
echo Getting current version-BU crosstab for %1 ...
gawk -f xtab.awk -f library.awk -v XFIELDNAME="GroupWise Client Release" -v YFIELDNAME=BU %1 > current-xtab-bu-version.csv
echo Creating HTML files
gawk -f csv2html.awk -f library.awk -v TITLE="GW Client Versions logged in on %DATE%" current*.csv > current-version-freq.html
echo Copying HTML files to Web server...
copy current*.html \\cotgw506\sys\apache2\htdocs\stats\
echo GWCLIENTID-CURRENT is done with %1
echo.
goto end
:help
echo Usage: %0 filename
echo.
echo The filename is the GWCLIENTIDxxx.CSV file created by GWCLIENTID.BAT (req'd)
pause
:end
rem EOF: GWCLIENTID-CURRENT.BAT
1 files processed.