Incode Systems Home Page Incode Systems, Inc.


LASTDOM



(03-23-1992 10:15am LASTDOM.EXE)
LASTDOM - (C) Copyright Glenn B. Lawler, 1992. All Rights Reserved.

Usage: [DATE]
Where: DATE is the date to be checked in the form:
MM-DD-YY or MM/DD/YY or MM-DD-YYYY or MM/DD/YYYY

If date is not provided, current machine date is used.
LASTDOM returns ERRORLEVEL 1 if DATE is not the last
day of the month it is in.

If date is provided and is invalid, LASTDOM returns
ERRORLEVEL 2 and writes an error message.

This utility is useful for building batches that execute
on the last day of the month only. For example:
LASTDOM
IF ERRORLEVEL 1 GOTO END
REM Add lines to be executed on last day of month here
:END