I am fairly new to Visual Basic, but I am hoping I can utilize it in
some way to accomplish the following:
I have a large collection of directories full of various files and am
looking to create custom text files for the contents of each
directory. Here is the situation:
The directories are named with a name and number, i.e. Smith1234567.
I am looking to create a text file named with the number portion of
the directory name (1234567.txt). The contents of the text file would
look similar to the following, where each "TIF" file line is generated
from the contents of each directory (hence, one line in the text file
per file in the directory):
0001234567,Policy Archive,ARCHVE,\CUSTOMER\IMAGES\T10020402151414500001.TIF
0001234567,Policy Archive,ARCHVE,\CUSTOMER\IMAGES\T10020402151414500002.TIF
0001234567,Policy Archive,ARCHVE,\CUSTOMER\IMAGES\T10020402151414500003.TIF
0001234567,Policy Archive,ARCHVE,\CUSTOMER\IMAGES\T10020402151414500004.TIF
0001234567,Policy Archive,ARCHVE,\CUSTOMER\IMAGES\T10020402151414500005.TIF
So basically, a text file containing 3 leading zeroes followed by the
number portion of the directory name, the text "Policy
Archive,ARCHVE,\CUSTOMER\IMAGES\" followed by the filename; one line
in the text file per file in the directory.
If you need any further clarification, please do not hesitate to ask.
Thanks! |