home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
lan
/
email336.arj
/
CHECK.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-01-30
|
2KB
|
60 lines
@echo off
:
: CKMAIL Usage:
: CKMAIL [EEMail Data Path] [User ID] [Full Status]
: [EEMail Data Path] = Drive/Directory to EEMail Data (Optional)
: [User ID] = User ID to check (optional)
: [Show Status] = Display Status screens
:
:
: Specifying no parameters tells CKMAIL to look in current directory,
: using currently logged in User ID and return only error levels.
:
: Example: CKMAIL m:\data\eemail jim x (look in m:, check for JIM, show stats)
:
cls
echo Checking for New Einstein Mail...Please wait...
ckmail %1 %2 %3
if not %3.==. goto EXIT
cls
if errorlevel 3 goto PHONE
if errorlevel 2 goto NOTUSER
if errorlevel 1 goto NEWMAIL
cls
echo.
echo ╒══════════════════════════╕
echo │ Sorry, no new mail today │
echo ╘══════════════════════════╛
echo.
echo Press any key to continue
pause >>nul
goto EXIT
:NOTUSER
cls
echo.
echo ╒═════════════════╕
echo │ Unknown User ID │
echo ╘═════════════════╛
echo.
echo Press any key to continue
pause >>nul
goto EXIT
:NEWMAIL
cls
echo.
echo ╒════════════════════════════╕
echo │ You have NEW MAIL waiting! │
echo ╘════════════════════════════╛
echo.
echo Press any key to continue
pause >>nul
goto EXIT
:PHONE
echo ╒══════════════════════════════════════╕
echo │ You have Telephone Messages Waiting! │
echo ╘══════════════════════════════════════╛
echo.
echo Press any key to continue
pause >>nul
:EXIT