@echo off
setlocal enableextensions enabledelayedexpansion
set rulesdir=d:\fido\mail\rules
set hptexe=d:\fido\hpt\bin\hpt.exe
set hptcfg=D:\Fido\hpt\hpt.cfg

%hptexe% -c %hptcfg% post  -s "Rules of R46.CRISIS" -e "R46.CRISIS" -z "Evil Robot" -o "Lame Users Breeding, Simferopol, Crimea." -f loc,npd D:\Fido\mail\Rules\R46.CRISIS.rul
%hptexe% -c %hptcfg% scan -a R46.CRISIS

for %%i in (%rulesdir%\crimea.*.rul) do set filename=%%~i&set areaname=%%~ni&%hptexe% -c %hptcfg% post  -s "Rules of !areaname!" -e "!areaname!" -z "Evil Robot" -o "Lame Users Breeding, Simferopol, Crimea." -f loc,npd !filename!
%hptexe% -c %hptcfg% scan -a crimea.*
