I'm using NW65 SP7 on multiple servers. From the server console I've loaded TBX and I'm trying to list the directory contents and redirect the output to a file. The directory listing returns fine but it won't write it to a file. Here are the commands I've tried:

This returns all the *.cfg files correctly to the screen
FS1: dir sys:/etc/*.cfg


All these return all the *.cfg to the screen but return the error: (dir) No such file or directory
FS1: dir sys:/etc/*.cfg > sys:/etc/listing.txt
FS1: dir sys:/etc/*.cfg >> sys:/etc/listing.txt
FS1: dir sys:/etc/*.cfg | sys:/etc/listing.txt

I've tried this on multiple servers with the same result so I must be doing something wrong, any ideas?

TIA,
Ray