In addition to Sergey's and Claudio's suggestions, it can also be serviced with VFP "RUN":
RUN dir /s > tt.txt && Slash S lists all the sub directories
>Hello friends,
>
>I am trying to use Dir to put a list of all files in my directory into one text file.
>Dir *.* to file test.txt
>But fox always shows me the list of these files in my window even when I am using a form and not using window command.
>
>How can I hide this list in my windows?
>I already tried to use SET CONSOLE and PROMPT.
>
>Thanks a lot.
>
>Rômulo Rocha.
Imagination is more important than knowledge