Quote Originally Posted by dglienna
Post the part of the code that doesn't work. You could use FSO, or plain VB code. Not hard.
I dont really have any code that "Doesn't work".
For the part im stuck at, I dont know where to begin :S

Here's some Psudo-Code:
=============================
open fileX for append
For i = 0 to (total number of files in directory)
get file(i) name, write to fileX
next i
close fileX
=============================

Like I said above, The program browses to the directory, stores the directory in a variable, and also stores the output directory in a variable (where the file is to be opened and saved).

The psudo-code is to open a file, and for each file it finds, its to write the name in a txt file.
I also need it to go into all subdirectories, and each of their subdirectories, till it gets EVERY file in the chosen directory.

example:

C:\Test
file1
file2
file3
folder1
file4
file5
folder2
folder3
folder4
file6
file7

so the output of file.txt should be:

file1
file2
file3
file4
file5
file6
file7