Now try this (note the typo): EHCO Hello world>NUL That's because >NUL redirects all Standard Output to the NUL device, which does nothing but discard it. You may be familiar with "redirection to NUL" to hide command output: ECHO Hello world>NUL (Since MORE's Standard Input is used by DIR, MORE must catch its keyboard presses (the "Any Key") directly from the keyboard buffer instead of from Standard Input.) Redirection Where the MORE command accepts DIR's Standard Output at its own Standard Input, chops the stream in blocks of 25 lines (or whatever screen size you may use) and sends it to its own Standard Output. Probably the most familiar example is MORE: DIR /S | MORE There is another stream, Standard Input: many commands accept input at their Standard Input instead of directly from the keyboard. Standard Error is the stream where many ( but not all) commands send their error messages.Īnd some, not many, commands send their output to the screen bypassing Standard Output and Standard Error, they use the Console. The ECHO command sends all its output to Standard Output. Standard Output is the stream where all, well, standard output of commands is being sent to. Those of you familiar with one of the Unix/Linux shells probably know what these streams are: The output we see in this window may all look alike, but it can actually be the result of 3 different "streams" of text, 3 "processes" that each send their text to thee same window. When I say "on screen", I'm actually referring to the "DOS Prompt", "console" or "command window", or whatever other "alias" is used. This will show the following text on screen: Hello world To display a text on screen we have the ECHO command: ECHO Hello world To illustrate my story there are some examples you can try for yourself.įor an overview of redirection and piping, view my original redirection page. On this page I'll try to explain how redirection works. VoltCraft Energy Logger 3500 Configurationīatch How To.