1.

Solve : In DOS, how to include a Pipe | character to pipe it to CLIP?

Answer»

Thank you in advance for any help

I need to pipe some TEXT to CLIP in a DOS batch file.  Problem I have is the text contains a PIPE character |.
For example, the text is abc|def.  I need the clipiboard to show abc|def as well.

Here's what I've tried so far without success.

echo abc|def|CLIP
The result is an error
'def' is not recognized as an internal or EXTERNAL command,
operable program or batch file.

echo abc^|def|CLIP
The result is an error
'def' is not recognized as an internal or external command,
operable program or batch file.

echo "abc|def"|CLIP
It KINDA worked but the CLIPBOARD SHOWS the text with the double quotes "abc|def"
I need the clipiboard to show abc|def

Please help.
Thank you.



Discussion

No Comment Found