Advertisement
Guest User

Untitled

a guest
Jun 8th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.48 KB | None | 0 0
  1. echo off
  2. rem v1.0
  3. rem Oct 2015 by JRH
  4. set dfile=sms.txt
  5. set ncheck=200
  6. for /f %%i in ('dir /b /a-d d:\hMailServer\Data\*.eml ^| find /v /c "::"') do set nfiles=%%i
  7.  
  8. if %nfiles% GTR %ncheck% goto sendsms
  9. if not exist %dfile% goto end
  10.  
  11. echo hMailServer_queue_warning_cleared. > %dfile%
  12. ftp -v -s:smsftp.txt
  13. ping 127.0.0.1 > nul
  14. del /Q %dfile% > nul
  15. goto end
  16.  
  17. :sendsms
  18.  
  19. echo hMailServer_Queue_files_(%nfiles%)_is_exceeding_%ncheck%. > %dfile%
  20. ftp -v -s:smsftp.txt
  21.  
  22. :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement