home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
mailmsg3.zip
/
MAILWARN.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-21
|
1KB
|
32 lines
@echo off
rem Mail Reminder Batch File (Ver 3.0) by John LeaverPower
cls
echo Checking for mail waiting messages ...
cd C:\ICOM\CAP
if exist MAILWARN.$$$ goto secondpass
fgrep -e "mail waiting" %1
if not errorlevel 1 goto chkqmail
cut g "mail waiting" "mayl waiting" %1 >nul
cut g "==<<" "===<" %1 >nul
echo Flag file for MAILWARN.BAT. Can be deleted anytime. >MAILWARN.$$$
goto done
:secondpass
del MAILWARN.$$$
if exist MAILWARN.TXT goto skipmake
echo MAIL WAITING REMINDER FILE >MAILWARN.TXT
:skipmake
find "=<<" <%1 >>MAILWARN.TXT
echo On the above date, the following mail reminder(s) were noted at logon: >>MAILWARN.TXT
find "Main Board ..." <%1 >>MAILWARN.TXT
find "Conference ..." <%1 >>MAILWARN.TXT
echo Mail Reminder Flag File. Can be deleted anytime. >MAILFLAG.TMP
goto done
:chkqmail
fgrep -e "Number of messages found...." %1
if not errorlevel 1 goto done
fgrep -e "Personal messages found..... 0" %1
if errorlevel 1 goto done
echo Mail Reminder Flag File. Can be deleted anytime. >MAILFLAG.TMP
:done
cd C:\ICOM