batch file - ask set /p variable on a different line -


i've seen in batch code can ask user input on separate line or continue while asking or something. example this;

enter name name:_(input here) enter name above 

and code might like;

echo enter name set /p /(continue) name=name:_ echo enter name above 

or maybe:

echo enter name (line 2) echo enter name above set /p /line:2 name=name:_ 

@echo off setlocal  cls echo  enter name echo name:  echo enter name above  rem move cursor 1 line below screen size, rem must adjust value fit screen. /l %%i in (1,1,34) echo/  rem move cursor screen home , hide timeout "waiting..." message /f %%a in ('timeout /t 1 ^> con') rem  set /p "name=name: " echo/ echo/ echo/ echo name read: "%name%" 

further details @ this post


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -