Archive for the ‘Scripts’ Category

This article is very useful to regenerate the AWstats.

To regenerate the stats. The AW stat logs needs to be created with the help of  IIS logs. Follow the steps to recreate the stats.

Have a check whether Perl is installed and go to the AW stats path and run the command in the path “C:\Program Files\HSphere\3rdparty\AWStats>” -update -logfile=”E:\hslogfiles\W3SVC641\ex091217.log”

run below command to update the stats in AW stats path. -update

Script to run the log file in AWStats:


“C:\Program Files\HSphere\3rdparty\AWStats\” -update -logfile=”E:\hslogfiles\W3SVC641\%1″


for /f %%a IN (‘dir /b “E:\hslogfiles\W3SVC641″‘) do call “C:\Program Files\HSphere\3rdparty\AWStats\red.bat” %%a