Posts: 1,956
Threads: 65
Joined: Jun 2003
Quote:So, thanks for all the tips. I didn't know any of the suggested commands like files, chdir, etc. I also tried Moneo's suggestion, but that was in a hurry, and didn't work. I'll take a better look after it later .......
Did you ever get my method to work? If not, please post your program so I can see what went wrong.
*****
Posts: 6,419
Threads: 74
Joined: Mar 2002
Quote:I used to have a program that Na_th_an gave to me that got the directory of a file such as windows and saved it to a text file so that it could be displayed in any way withing QB but I don't remember how he did it. You should ask him.
This
http://faq.qbasicnews.com/?blast=DirectoryContents
and maybe this is useful...
http://faq.qbasicnews.com/?blast=RelativePaths
but I don't know it this answers her question.
Posts: 1,956
Threads: 65
Joined: Jun 2003
BANANNA,
Nathan's "DirectoryContents" example above confirms my suggestion of doing a SHELL with a DIR command. This is the most popular and proven method of obtaining a list of filenames in a given directory. You should try to get this working. If it won't work for you, post your program so we can help. If you're no longer interested, kindy advise.
*****