Dear Friends,
I have a sequence of two values as the following:
00001.doc
d:\pathtofile\image50.jpg
00002.doc
d:\pathtofile\image38.jpg
00003.doc
d:\pathtofile\image40.jpg
...
I would like to add the values to a list, sort the list by second value and rename the first value accordingly.
For example, the following steps:
Step 1
'00002.doc', 'd:\pathtofile\image38.jpg'
'00003.doc', 'd:\pathtofile\image40.jpg'
'00001.doc', 'd:\pathtofile\image50.jpg'
Step 2
'a00001.doc', 'd:\pathtofile\image38.jpg'
'a00002.doc', 'd:\pathtofile\image40.jpg'
'a00003.doc', 'd:\pathtofile\image50.jpg'
The pathtofile is always the same, so I will not need (probably) to break it and extract the filename.
Thank you for your help.
G.