again it is not clear to me what you want to achieve, so take the following as a sample.
set /P name=Please, enter your name^>
:: here the code to check if the user is allowed to continue
type names.txt | find /I "%name%" > nul
if not ErrorLevel 1 (
echo. Hello %name%, press any key to continue...
) else (
echo. Sorry "%name%" is unknown & goto :EOF
pause > nul
names.txt is a text file holding the names (nicknames) of users allowed to enter the application and must have the following layout, e.g.
i.e. one name on each line.
You can edit the file by its own without modifying the associated batch. As I said this is just a tip. I hope this can help.