Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- H:
- cd H:\Scans
- For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set todaydate=%%c-%%a-%%b)
- For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set currenttime=%%a.%%b.%%c)
- echo %todaydate%
- echo %currenttime%
- for /f "delims=" %%i in ('dir /b /a-d *.*') do ren "%%~i" "%%~ni "%todaydate%.%currenttime%"%%~xi"
- move "H:\Scans\*" "H:\Scans\CompletedScans\"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement