Changing folder's name from unknown name

I want to change folder's name, but the only thing I know about the folder that it's the latest folder created in the folder where it located. How can I do it?

 Accepted Answer

Honglei Chen
Honglei Chen on 14 May 2014
Edited: Honglei Chen on 14 May 2014
d = dir;
The above command returns a struct array which has a field called datenum. Each file in the current directory corresponds to an entry in the array. The latest file will have the largest datenum

More Answers (0)

Categories

Asked:

ori
on 14 May 2014

Commented:

ori
on 16 May 2014

Community Treasure Hunt

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

Start Hunting!