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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Joe_Ragnar
Posts: 2
Joined: 12 May 2021 16:01

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

#1 Post by Joe_Ragnar » 12 May 2021 16:22

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

Aacini
Expert
Posts: 1885
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

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

#2 Post by Aacini » 13 May 2021 07:25

Code: Select all

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

Joe_Ragnar
Posts: 2
Joined: 12 May 2021 16:01

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

#3 Post by Joe_Ragnar » 13 May 2021 09:35

Antonio:

Much appreciated.

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

Thanks a lot!

All the best.

Post Reply