Change archives name with Matlab

1 view (last 30 days)
Hi,
I've a question about how can I change archives name. I will try to ask it with a simple example:
I have on one hand this archives:
ab123.zip
bc124.zip
cd125.zip
On the other hand, I have this ones:
abxx1.jpg
bcxx2.jpg
cdxx3.jpg
What I try to do is to sustitute the 'xx1, xx2 and xx3' of the last archives with '123, 124 and 125' from the first ones. Is that possible to automatize that with the position? I need to do it with a lot of archives.
Thanks a lot in advance and greetings,
Emma

Accepted Answer

Walter Roberson
Walter Roberson on 13 Oct 2012
  1 Comment
Emmanuelle
Emmanuelle on 15 Oct 2012
Thanks Walter. I thinks it's the way to do it but I've a problem.
How can I process the automatized process? I need that everytime create a new name with the same format:
ab/bc/cd (the two first positions from the first name) + number (the number from 3,4 and 5 position)
Is that possible?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!