DOS Batch File Tutorial: Advanced Examples I
:: DRTD.bat:: Lists Files Made or Modified Today:: In the Current or All Directories::@ECHO OFF
C:\DOS\XSET CUR-DATE DATE MM-DD-YY
IF "%1" == "" GOTO LIST-CURIF "%1" == "\" GOTO LIST-ALL
:LIST-CURDIR *.* /O:N Find "%CUR-DATE%" MOREGOTO END
:LIST-ALLDIR \*.* /O:N /S Find "%CUR-DATE%" MORE
:ENDSET CUR-DATE=
No comments:
Post a Comment