rename files in a directory
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello :)
I have several folders in a directory and in each folder there is a file named as DATA.mat. I want the code to open each folder, takes the DATA file and renames it as DATA_1 and pastes it in a new directory. Then Goes to the next folder, does the same thing and renames it as DATA_2.
The folders in the directory are named based on the date and day and time they were created. 2018102314-16-00, 2018102314-26-01, 2018102316-23-44 etc. The file DATA in the oldest folder should be renamed to DATA_1.
Hope I am clear!
Thank you
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!