I have modified the bat file to correct the two mistakes.
Still it is not prompting me if i dont provide any input. i am just typing enter button.
Then bat file execution is getting completed. But it should prompt me to enter username.
I am using Windows 2000.
<code>
@echo off
:uname
SET /P username=Please enter your username:
IF "%username%" == "" GOTO uname
echo entered %username%
</code>
You made 2 mistakes
1. in 3rd line there should be quotes around %username%
2. in 4th line there should be percent signs around username
Like this
@echo off
:uname
SET /P username=Please enter your username:
IF "%username%"=="" GOTO uname
echo entered %username%