Google Answers Logo
View Question
 
Q: Visual Basic-Creating Custom Text File from Directory Listing ( No Answer,   0 Comments )
Question  
Subject: Visual Basic-Creating Custom Text File from Directory Listing
Category: Computers > Programming
Asked by: raja_ns2004-ga
List Price: $10.00
Posted: 12 Mar 2004 06:19 PST
Expires: 12 Mar 2004 07:26 PST
Question ID: 315965
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!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy