JSI Tip 1104. "The directory name is invalid" when piping with "| MORE"?

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\}

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish