close

利用 Ant Renamer 2.12.0  整理 手機拍的影片檔,並依 yyyymmdd-hhnnss 年月日時分秒 命名

整理完之後發現,要將上百個檔案放到個別的目錄下是一件難事

I use Ant Renamer 2.12.0 rename the movies with year month date hour minute second.

After renamed,I found it's differcult to arrange the file and move the file to the special folder.

 

我利用bat 來完成移動的目的。

I use batch to move the file

▲Before

▼ After

Batch file

::move yyyymmdd-hhmmss..mov to yyymmdd folder

::以"-" 做為斷點,將檔名拆成兩段,然後尋找前段,如果不存在則建立目錄,然後將檔案move 到目錄

For /f "tokens=1-2 delims=- " %%a in ('dir  /b /a-d') do call :func %%a %%b

goto :eof


:func

IF NOT EXIST %1 mkdir %1

move %1-%2 %1

goto :eof
 

 

 

arrow
arrow

    aney22 發表在 痞客邦 留言(0) 人氣()