If you receive:

The directory name is invalid when piping with | MORE, your ComSpec environment variable may have an environment size entry => 2048:

ComSpec %SystemRoot%\system32\cmd.exe /e:xxxx when viewed in Control Panel / System / Environment, where xxxx is => 2048.

Try removing the /e:xxxx switch and rebooting.

If this doesn't solve your problem, you can:

1. Pipe the output to a file:

        DIR *.* > FileName.txt

2. Use the equivalent:

        DIR *.* > PIPE0 \{press Enter\} MORE < PIPE0 \{press Enter\}