12

Is it possible to create a line break after a set /P command? I would like the user to be able to type on a new (blank) line instead of next to the existing prompt. For example:

set /P test=type now

echo %test%

This code simply lets the user type next to the prompt.

EpicCyndaquil
  • 263
  • 2
  • 3
  • 17

1 Answers1

18

If you want input on the following line, just use:

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

The echo will output the prompt including the newline, then you just use set /p with no prompt.

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953