Skip to content.

TalkBMC

Sections

Comment

Above in this comment thread: MS-DOS tips for time and date stamps

-

Posted by Bala at 2006-06-07 09:59
Thanks for the script, Timely help to me

Try this instead

Posted by Bill Screen at 2006-10-23 12:47
@echo off

set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~10,4%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%
echo %yymmdd_hhmmss%

pause
 
 

Powered by Plone

This site conforms to the following standards: