Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- rem v1.0
- rem Oct 2015 by JRH
- set dfile=sms.txt
- set ncheck=200
- for /f %%i in ('dir /b /a-d d:\hMailServer\Data\*.eml ^| find /v /c "::"') do set nfiles=%%i
- if %nfiles% GTR %ncheck% goto sendsms
- if not exist %dfile% goto end
- echo hMailServer_queue_warning_cleared. > %dfile%
- ftp -v -s:smsftp.txt
- ping 127.0.0.1 > nul
- del /Q %dfile% > nul
- goto end
- :sendsms
- echo hMailServer_Queue_files_(%nfiles%)_is_exceeding_%ncheck%. > %dfile%
- ftp -v -s:smsftp.txt
- :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement