Consider this batch file :@echo off
set /p var1=Input your first name and press Enter key :
set /p var2=Input your last name and press Enter key :
pause
If I run this batch file by double clicking on it, it works fine.
But if it is run through console window of NppExec plugin of Notepad++, it only waits for first input.
Probably, "enter" key pressed by user is taken as input for second "set" command.
One solution may be to insert one more "set" command before second "set" as:
@echo off
set /p var1=Input your first name and press Enter key :
set /p temp=
set /p var2=Input your last name and press Enter key :
pause
But then problem will arise, when this batch file wiil be run through command prompt or simply by double clicking on it (will wait for three inputs).
Is there any way to solve this?
0
votes
cmd-command:cmd /c yourbatchfile.cmd. - user694733