I'm new to Batch Programming.I'm trying to use an IF Condition in one of my Batch Script.The Code looks like this.
:rmfile
:: removes the file based on it's age.
::
SETLOCAL
set file=%~1
set age=%~2
set thrshld_days=40
if %age% LSS 40
echo.%file% is %age% days old
EXIT /b
Now the Problem is that even if the age of a file is more than 40 i'm getting the file printed.which actually should not happen.
Please Help me in this regard..Thanks!