07-09-2008, 12:11 AM
(07-04-2008, 01:12 PM)LPG link Wrote:Is there a QB command that allows you to see what directories / files are in a folder?Others have suggested using a SHELL with a DIR to see the directories/files. However, this will just allow you to scroll through the list onc from top to bottom. The following example will allow you to browse the list up and down.
folder$ = full path and name of subject forder
SHELL "cmd/c DIR "+folder$+">thelist
' The above puts the contents, directories/files, into a work file called thelist.
SHELL "cmd/c EDIT thelist"
'Using EDIT lets you be able to scroll through thelist file.
'When you're done looking, exit the EDIT.
'Note: the cmd/c in the SHELL is to insure compatibility.
Regards..... Moneo