for /f "tokens=3 delims=- " %a in ('date /t') do @echo %a
pause
date /t shows 2007-08-22 Wednesday
But as soon as I run the code above, an error appears:
No matter what, I can't get the final result. Where is the mistake?
[ Last edited by icyheart on 2007-8-22 at 10:03 PM ]
pause
date /t shows 2007-08-22 Wednesday
But as soon as I run the code above, an error appears:
No matter what, I can't get the final result. Where is the mistake?
[ Last edited by icyheart on 2007-8-22 at 10:03 PM ]
