|How to exclude symbols from batch file user input?|
so far i have this,
echo Welcome, Please type your favoured screen-name below
set username= type your screen-name here please
set /P username=Type username: %=%
echo.%username% | findstr - > nul
if not ErrorLevel 1 (
echo. ERROR: Your screen name cannot contain [ or ]. please try again.
echo you have successfully logged in :)"
as you can probably see i want to stop the characters [ and ] from being used, any help would be appreciated,