Re: Автопостинг на ноде.
Daniil Ustuzaninov написал(а) к Stas Mishchenkov в Jun 22 13:38:34 по местному времени:
Привет, Stas!
Ответ на сообщение Stas Mishchenkov (2:460/5858) к Daniil Ustuzaninov, написанное 02 июн 22 в 10:04:
DU>>> Как настроить сабж?
NA>> Судя по тому, что у тебя Хаски (TID: hpt/w32-mgw 1.4.0-sta
NA>> 30-03-12), то hpt post, ну или через txt2pkt.
NA>> Садя по тому, что у тебя шиндовз (GoldED+/W32-MINGW
NA>> 1.1.5-b20120519 (Kubik 3.0)), то со скриптами там всё несколько
NA>> не так, как в юниксах, поэтому я тут не капенгаген.
SM> === Import rules.cmd Start ===
SM> @echo off
SM> setlocal enableextensions enabledelayedexpansion
SM> set rulesdir=d:\fido\mail\rules
SM> set hptexe=d:\fido\hpt\bin\hpt.exe
SM> set hptcfg=D:\Fido\hpt\hpt.cfg
SM> rem одной строкой.
SM> %hptexe% -c %hptcfg% post -s "Rules of R46.CRISIS" -e "R46.CRISIS" -z
SM> "Evil Robot" -o "Lame Users Breeding, Simferopol, Crimea." -f loc,npd
SM> D:\Fido\mail\Rules\R46.CRISIS.rul
SM> %hptexe% -c %hptcfg% scan -a R46.CRISIS
SM> rem одной строкой.
SM> for %%i in (%rulesdir%\crimea.*.rul) do set filename=%%~i&set
SM> areaname=%%~ni&%hptexe% -c %hptcfg% post -s "Rules of !areaname!" -e
SM> "!areaname!" -z "Evil Robot" -o "Lame Users Breeding, Simferopol,
SM> Crimea." -f loc,npd !filename!
SM> %hptexe% -c %hptcfg% scan -a crimea.*
SM> === Import rules.cmd End ===
Спасибо!
С уважением - Daniil
--- GoldED+/W32-MINGW 1.1.5-b20120519 (Kubik 3.0)
|