what does | do in cmd batch

Microsoft Windows xp home edition with s...
August 15, 2010 at 13:31:18
Specs: Windows XP
i have been writeing up a .bat program and in one section i want it to kind of look like it has a UI.
so i went to go do this i was just going to use echo and a hole bunch of symbols...
but when i used "echo |" it said "| was unexpected at this time" and will not let me use it... im just wondering what that symbol does... btw incase you could not see what symbol that is it is the one under the backspace that u need to hit "shift" for.

See More: what does | do in cmd batch

Report •

August 15, 2010 at 15:15:58
It is called the pipe character. It is used to direct the output from one process to the input of another, A bit like the > that directs the output of a process to file, the pipe sends it to another process.

Consequently it has no relevance after the Echo command.



Report •

Report •

August 17, 2010 at 08:01:14
Adding to what StuartS mentioned above - if you wanted to echo the character you can do so.

echo ^|

Report •

Related Solutions

Ask Question