waqu, наверное, можно эти строки:
Код:
![Выделить весь код](images/misc/selectcode.png)
"%SystemRoot%\system32\curl.exe" -f -s www.whatismyip.com/automation/n09230945.asp > 1.txt
"%SystemRoot%\system32\blat.exe" "%SystemRoot%\system32\1.txt" -to mail@yandex.ru
заменить на:
Код:
![Выделить весь код](images/misc/selectcode.png)
curl.exe -f -s www.whatismyip.com/automation/n09230945.asp > 1.new.txt
set sendIP=1
if exist 1.txt (
fc /b 1.txt 1.new.txt >nul && set sendIP=0
del /f /q 1.txt
)
ren 1.new.txt 1.txt
if %sendIP%==1 (
blat.exe 1.txt -to mail@yandex.ru
if not %errorlevel%==0 del /f /q 1.txt
)
P. S. Файл 1.txt не удалять после выполнения.