Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem gets Date Parts
- rem by Vasil "npocmaka" Arnaudov
- for /f "skip=10 tokens=2,3,4,5,6,7,8 delims=: " %%D in ('robocopy /l * %tmp% %tmp% /ns /nc /ndl /nfl /np /njh /XF * /XD * ') do (
- set "dow=%%D"
- set "month=%%E"
- set "day=%%F"
- set "HH=%%G"
- set "MM=%%H"
- set "SS=%%I"
- set "year=%%J"
- )
- echo Day of the week: %dow%
- echo Day of the month : %day%
- echo Month : %month%
- echo hour : %HH%
- echo minutes : %MM%
- echo seconds : %SS%
- echo year : %year%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement