Maybe LIST FILES TO TEST.TXT will work for you...
What are you doing with that file? Have you looked at ADIR() command?
>How can I suppress ("Press any key to continue") message from appearing when I issue command DIR C:\TEST TO FIle Test.txt
>Any help
Steve Gibson