Printer Version Table of Contents Project Home Page
.EXAMPLE.....: 88 Display a list of all files that were created/updated today.
.CATEGORY....: examples
.DISCUSSION..:
.CODE........:
@echo off
if (%1)==(SUBROUTINE) goto %2

CLS
echo FILES MEETING FILESPEC [%1] THAT WERE CREATED OR UPDATED TODAY
::   The batch file calls itself: Its own name is in parm %0
for %%v in (%1) do  CALL %0 SUBROUTINE CHECKFILE %%v

set comp=
goto endit


:CHECKFILE
shift
shift

:: Compare today's date to the date on the %1 file
 Fdate /Fcomp /If /A%1 /Vcomp

:: echo the filename if the file was created/updated today
if (%comp%)==(EQ) echo %1

:endit