Advertisement
Guest User

Untitled

a guest
May 5th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. H:
  2. cd H:\Scans
  3. For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set todaydate=%%c-%%a-%%b)
  4. For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set currenttime=%%a.%%b.%%c)
  5. echo %todaydate%
  6. echo %currenttime%
  7. for /f "delims=" %%i in ('dir /b /a-d *.*') do ren "%%~i" "%%~ni "%todaydate%.%currenttime%"%%~xi"
  8. move "H:\Scans\*" "H:\Scans\CompletedScans\"
  9.  
  10. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement