Page 1 of 1

Entering an "ENTER" or New_Line to load multiple lines to the Clipboard

Posted: 12 May 2021 16:22
by Joe_Ragnar
Good People,

I’m using the following code to load a string in the Clipboard:

echo|set/p=String 01|clip

This puts in the clipboard:

Code: Select all

String 01


And I would like to add a couple of more lines separated by a couple of “ENTER”s or NewLines to get this:

Code: Select all

String 01


String 02


String 03


but I don’t know how to set it up.

I’m using Windows 7.

Your help will be appreciated.

Thanks a lot.

Joe_Ragnar

Re: Entering an "ENTER" or New_Line to load multiple lines to the Clipboard

Posted: 13 May 2021 07:25
by Aacini

Code: Select all

(echo String 01 & echo/& echo String 02 & echo/& echo String 03) | clip
Antonio

Re: Entering an "ENTER" or New_Line to load multiple lines to the Clipboard

Posted: 13 May 2021 09:35
by Joe_Ragnar
Antonio:

Much appreciated.

Exactly what I was looking for and in my ignorance couldn't find.

Thanks a lot!

All the best.