SET MailChkProg=C:\win32app\dotim100\mailchk.exe SET POPServer=pop.hogehoge.com SET POPPort=110 SET UserName=postmaster SET Password=root SET MailSend=C:\Win32app\Blat\BlatJ.exe SET SMTPServer=smtp.mail.co.jp SET SMTPPort=25 SET ToMailAddress=通知先アドレス SET FromMailAddress=チェックしているアドレス SET Subject=%FromMailAddress%ExistMail %MailChkProg% %POPServer% %POPPort% %UserName% %Password% IF %ERRORLEVEL%==-1 GOTO FIN IF %ERRORLEVEL%==0 GOTO FIN ECHO メール来た(%FromMailAddress%) | %MAILSEND% - -t %ToMailAddress% -s %Subject% -server %SMTPServer% -f %FromMailAddress% -port %SMTPPort% :FIN FOR %%I IN (Subject ToMailAddress FromMailAddress SMTPServer SMTPPort MailSend MailChkProg UserName POPServer POPPort Password) DO SET %%I= |