|
-
Oct 4th, 2006, 11:02 AM
#1
Thread Starter
Addicted Member
Generate Text File containing Directory structure
Hello,
What I would like to do is generate a text file containing full paths of all files within subdirectories.
So for instance, in my application, I would choose a folder on my C: drive. Let's say the folder name is TEST. In the TEST directory there are folders and files. I would like to have the program generate a text file similar to this:
C:\TEST\1.txt
C:\TEST\2.txt
C:\TEST\Dir1\1.txt
C:\TEST\Dir2\2.txt
It would store a full path on each line representing all files and all files under all sub-directories...
Is this possible?
-
Oct 4th, 2006, 11:45 AM
#2
Banned
Re: Generate Text File containing Directory structure
Sure its possible,
do you have specific questions. Take a look at the DirectoryInfo class, FileInfo class,
Readers / Writers..etc.
There is plenty of sample code in msdn vb 2005 / .net 2k3.
-
Oct 4th, 2006, 12:37 PM
#3
Re: Generate Text File containing Directory structure
rjdpa, have a look at the attachment I posted here.
http://www.vbforums.com/showthread.php?t=431294
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|