Re: FW: [BATCH WORLD] Help
- On Thu, 12 Sep 2002 15:28:05 -0400, "Martin, Sam" <sam.martin@...>
>Interesting.The caret is an escape character in NT and used when echoing certain
>I don't understand the carats in:
>for /f "tokens=5-8 delims=:. " %%a in ('ver^|time^
will echo > to the screen which couldn't be done as simply in Win9x.
>Likewise, the use of the colons inThis checks if the second character is a colon, which can occur in a am/pm
>if "%time:~1,1%"==":" set time=0%time%
time of say 4:45 pm, and adds a leading zero.
>set time=%time::=%This removes all colons from %time%.
Syntax is %var:x=y% which replaces x with y in %var%.