Zeitstempel in einer DOS-Box (cmd.exe)


set day=%date:~0,2%
set month=%date:~3,2%
set year=%date:~6,4%
set hour=%time:~0,2%
set minute=%time:~3,2%
set second=%time:~6,2%
set dstamp=%year%%month%%day%
set tstamp=%hour%%minute%%second%
set timestamp=%dstamp%-%tstamp%
set timestamp=%timestamp: =0%
echo %timestamp%