May-28-2018, 02:46 PM
(This post was last modified: May-28-2018, 02:47 PM by MariaBelen.)
Hi everyone, I have a problem to solve. I have two folders like this
FOLDER 1:
- 05.xml
- 06.xml
- 07.xml
- 08.xml
FOLDER 2:
- 01_2500.jpeg
- 02_2501.jpeg
- 03_2502.jpeg
- 04_2503.jpeg
- 05_2504.jpeg
- 06_2505.jpeg
- 07_2506.jpeg
- 08_2507.jpeg
I need to rename the folder 1 as follows:
- 2504.xml
- 2505.xml
- 2506.xml
- 2507.xml
How can I do it? I have been trying this for days. Obviously this is a simplified example, because there are actually thousands of files to rename.
I thought that I could use split function for the folder 2 and then apply if, but I can't.
FOLDER 1:
- 05.xml
- 06.xml
- 07.xml
- 08.xml
FOLDER 2:
- 01_2500.jpeg
- 02_2501.jpeg
- 03_2502.jpeg
- 04_2503.jpeg
- 05_2504.jpeg
- 06_2505.jpeg
- 07_2506.jpeg
- 08_2507.jpeg
I need to rename the folder 1 as follows:
- 2504.xml
- 2505.xml
- 2506.xml
- 2507.xml
How can I do it? I have been trying this for days. Obviously this is a simplified example, because there are actually thousands of files to rename.
I thought that I could use split function for the folder 2 and then apply if, but I can't.