Make line break when user input request (/ P) in batch mode?

Is it possible to create a line break after the set /P command? I would like the user to be able to type a new (empty) line, and not next to the existing tooltip. For example:

 set /P test=type now echo %test% 

This code simply allows the user to enter next to the invitation.

+8
windows newline batch-file user-input line-breaks
source share
1 answer

If you want to enter the following line, just use:

 echo type now set /p test= echo %test% 

echo will prompt you, including a new line, then just use set /p without prompting.

+10
source share

All Articles