Shed some light on me
Posted: 29 Oct 2011 08:00
Hi All,
Shed some light.
Here's the scenario:
I have a folder with lots of folders inside and inside those folders are .tif files. I want to create a program that will rename those images based from the list from my text file.
Here's the content of my text file:
Filename: woutbar.txt
Filename: withbar.txt
if the count of tif files is equal to 16, the tif files will be renamed based from the contents of withbar.txt but if it's not 16 the tif files will be renamed based from the contents of woutbar.txt.
I've used for loop but it says duplicate file. Kindly help me. Thanks in advance.
Shed some light.
Here's the scenario:
I have a folder with lots of folders inside and inside those folders are .tif files. I want to create a program that will rename those images based from the list from my text file.
Here's the content of my text file:
Filename: woutbar.txt
Code: Select all
1.tif
2.tif
2_001.tif
3.tif
3_001.tif
4.tif
4_001.tif
5.tif
5_001.tif
6.tif
6_001.tif
7.tif
7_001.tif
8.tif
8_001.tif
Filename: withbar.txt
Code: Select all
1.tif
1_001.tif
2.tif
2_001.tif
3.tif
3_001.tif
4.tif
4_001.tif
5.tif
5_001.tif
6.tif
6_001.tif
7.tif
7_001.tif
8.tif
8_001.tif
if the count of tif files is equal to 16, the tif files will be renamed based from the contents of withbar.txt but if it's not 16 the tif files will be renamed based from the contents of woutbar.txt.
I've used for loop but it says duplicate file. Kindly help me. Thanks in advance.