Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd=%%k%%j%%i
- echo Date: %yyyymmdd%
- for /F "tokens=1-3 delims=: " %%i in ('echo %time%') do set hhmmss=%%i%%j%%k
- echo Time: %hhmmss%
- mkdir \\server1\share1\subdir1\%yyyymmdd%%hhmmss%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement