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 the "TIF" files at the end of
each line are the contents of each directory:
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500001.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500002.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500003.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500004.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500005.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\IMAGE S\" followed by the filename; one line
in the text file per file in the directory.
Obviously, my question is if and how it can be done.
Thanks in advance,
Gema
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 the "TIF" files at the end of
each line are the contents of each directory:
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500001.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500002.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500003.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500004.TIF
0001234567,Poli cy Archive,ARCHVE, \CUSTOMER\IMAGE S\T100204021514 14500005.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\IMAGE S\" followed by the filename; one line
in the text file per file in the directory.
Obviously, my question is if and how it can be done.
Thanks in advance,
Gema
Comment