1.

Solve : Multiline variable in Batch script?

Answer»

For work I frequently need to email the same emails to users who need my ASSISTANCE. Things like "I'm glad I was able to ASSIST you, if you need ..."
I have a few scripts that WRITE those variable to my clipboard so I just need to paste them into my email. Is there a way to TURN an output of
I'm glad I could help Joshua
into
I'm glad I could help
Joshua


here is the script I have already.


echo|set /p="Glad I could helpJoshua"
paste | command | clip



and with that i need to go back and put an enter in. Is there a better way?




Not sure about a better way, but this will get two lines on the clipboard:

Code: [SELECT](echo Glad I Could Help && echo Joshua) | clip

Tested on Win10 using Notepad to paste data from clipboard.

Good luck,



Discussion

No Comment Found