REM ** mIRCStats automatic update batch file with log download support REM ** Updated for multiple file upload 2.6.2002 ECHO ** mIRCStats autoupdate (with download) started ** ECHO . REM ** Change these variables to match your files. set mircstats=e:\mircstats\mircstats.exe set chanlog=d:\mirc\logs\#mychannel.log set stats=e:\mystats\mychannel.html set ftpup=e:\mircstats\autoupdate\ftpup.txt set ftpdown=e:\ave\mircstats\autoupdate\ftpdown.txt REM ** First delete old stats so we can see when new one is ready echo Trying to delete old stats from %stats%... del %stats% echo . REM ** delete old log so we can see when new one is downloaded echo Trying to delete old log from %chanlog%... del %chanlog% echo . echo Downloading log using script file %ftpdown% REM ** LOG DOWNLOAD REM ** Execute dos-ftp with some commands from script file ftp -i -s:%ftpdown% echo mIRCStats launched with following parameters: echo log: %chanlog% echo stats destination: %stats% REM ** Runs mIRCStats with your log file as a command line parameter: REM ** You can also use specific config file for this automatic update (-c configfile.cfg) START /w %mircstats% %chanlog% %stats% REM START /w %mircstats% %chanlog% %stats% -c myconfigfile.cfg REM ** More info about mircstats.exe command line parameters from mircstats readme.txt echo . echo New stats ready at %stats% echo Uploading stats to remote server.. echo . REM ** Execute dos-ftp with some commands from script file ftp -i -s:%ftpup%