Hi Rômulo,
The DIR is a tool you can use in development. In application you can use ADIR() or SYS(2000) functions to get the list of files. If you insist on using DIR, try
DEFINE WINDOW dummy FROM 0,0 SIZE 1000,1000
ACTIVATE WINDOW dummy NOSHOW
DIR *.txt TO file dir.txt
RELEASE WINDOW dummy
>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.
>
--sb--