1
I'm using clip
to set text on the clipboard.
To do that, I use echo
.
echo Works|clip
The problem is when the text contains special characters, eg. |
"
.
echo (TRUE|FALSE)|clip
echo " is a Quote Mark|clip
How should the text for echo
be escaped?
Is there a better way to set text to the clipboard?
Possible duplicate of how to escape pipe symbol | in bat scripts?
– phuclv – 2018-09-12T17:01:33.400@phuclv Not really. It's a bit more complicated. See my answer. – DavidPostill – 2018-09-12T17:28:16.760