Question rename files?

renzlo

New member
Joined
Oct 29, 2011
Messages
1
Programming Experience
Beginner
Hi Guys,

How's your day? I would like to ask, since I'm a beginner in vb .net, I can't figure this out.

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
VB.NET:
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

VB.NET:
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 looped forever. Kindly help me. Thanks in advance.
 

Latest posts

Back
Top