computing and/or coding
Pages
Home
Monday, 21 May 2012
get proper ms-dos timestamp
set hr=%time:~0,2%
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1%
set myFilesuffix=%date:~-4,4%%date:~-7,2%%date:~-10,2%_%hr%%time:~3,2%%time:~6,2%
echo %myFilesuffix%
pause
 
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)