Line breaks in Windows MSG command

START "" "C:\Program Files (x86)\JAM Software\TreeSize Free\TreeSizeFree.exe"
MSG * "Please select the drive to analyse space
This is a new line
This is a new line"

I need to insert a line break in this windows message file after space and new lines
I have tried ^ and \n
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
The only way I know of is to simulate keyboard input - that is, you echo your lines and pipe the result into mgs.exe:
( echo Please select the drive to analyse space
  echo This is a new line
  echo This is a newer line
) | msg *

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
doctorbillTechAuthor Commented:
Awesome - thanks
Works - at least in windows 10
Bill PrewIT / Software Engineering ConsultantCommented:
And if you are just looking for a good way to pop up dialog boxes in a BAT script and get user input, you might take a look at WBOX.  It's a good free utility for this purpose that doesn't require installation, just an EXE that you need to deploy with your BAT file.  Take a look, if nothing else you might want to be aware of this and the other useful utilities on the site for future BAT needs.  A great addition to your toolbox...

doctorbillTechAuthor Commented:
Thanks all
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.