Batch renaming some files

1 回表示 (過去 30 日間)
YEMY
YEMY 2022 年 9 月 9 日
コメント済み: Image Analyst 2022 年 9 月 9 日
Hello,
I have some 365 files (tif format) named 1.tif, 2.tif... and I want to rename them to an actual date in 2010. as the name now reflects the julian date and I want to transform it to normal date. for example 1.tif file should be: image_01-01-2010 etc..
I tried many methods but it didn't work.
Thank you
  1 件のコメント
Image Analyst
Image Analyst 2022 年 9 月 9 日
What exactly do you have and what do we need to invent for you?
  1. Do you already have the function that turns a number in the range 1-365 into a data string yet? If so, please post that part.
  2. Do you already have the part that gets a file list and loops over all existing files and constructs source and desitnation filenames and calls movefile? (This part is trivial.)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by