batch %time:~9,2%

June 22, 2011 at 12:02:00
Specs: Windows 64
What does this line of .bat/batch code do? I know that %time% is the variable for the current time on your machine but what does :~9,2% change to it? I tried to find this out by displaying it with this code:

set /a number=%time:~9,2%
echo %number%
goto :A

See More: batch %time:~9,2%

Report •

June 22, 2011 at 13:07:41
That catches the substring of 2 chars at position 9 (starting from 0) inside the %time% variable. To know more about substring manipulation and environment variables modifiers type set /?.

Report •
Related Solutions

Ask Question