jhangyu

Sort photo by name date.bat

Apr 6th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setlocal EnableDelayedExpansion
  2. echo off
  3. for %%F in (*.jpg) do (
  4.     set temp_date=%%~nF
  5.     set file_date=!temp_date:~0,10%!
  6.     if not exist !file_date! (
  7.     mkdir !file_date!
  8.     )
  9.     move %%~nxF !file_date!
  10. )
Add Comment
Please, Sign In to add comment