Advertisement
jhangyu

Sort_Photo_by_Date

Jan 19th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.20 KB | None | 0 0
  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. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement