Tom's Guide | Tom's Hardware | Tom's Games | PC Safety Suite
![]() |
![]() |
![]() |
Comment:
Hi gang,
This seems to work OK in w2k, but is hardwired for a %~tF output of:
14-11-05 21:34
It ignores the time HH:MM and uses only DD MM YY.
:: chk4age.bat
@echo offif %1'==' echo we need YYMMDD && goto :eof
:main
set cutoff=%1
pushd test
for %%F in (*.bak) do call :compareDATE %%F
popd
goto :eof:compareDATE
set origFMT=%~t1
set newFMT=%origFMT:~6,2%%origFMT:~3,2%%origFMT:~0,2%
if %cutoff% GTR %newFMT% echo older
:: DONENote that it will prompt for usage if a parameter is not given. But if you specify something off-the-wall it will not catch your mistake.
If at first you don't succeed, you're about average.M2
![]() |
Font size in C++
|
Problem with redraw()
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.