Printer Version | Table of Contents | Project Home Page |
.EXAMPLE.....:rem use Fdate to check validity of year in parm %1 Fdate /Fv /Imm-dd-ccyy /ATT-TT-%1 > nul if errorlevel 1 echo Year parm [%1] is not valid. if errorlevel 1 goto endit
.EXAMPLE.....:rem use GET with Fdate, to put Fdate output into %year% Fdate /Ff /Imm-dd-ccyy /ATT-TT-%1 /Occyy | GET ZE /V%year% >nul if (%year%)==(ERROR) echo Year parm [%1] is not valid. if (%year%)==(ERROR) goto endit
rem use a batch file with Fdate, to put Fdate output into %year% Fdate /Ff /Imm-dd-ccyy /ATT-TT-%1 /Occyy /P"@set year=">junktemp.bat call junktemp.bat del junktemp.bat if errorlevel 1 echo Year parm [%1] is not valid. if errorlevel 1 goto endit