set /p "PLAYERNAME=What is Your In-Game Name? (Must Be Under 10 Characters)?"
if defined # (set #=%#:~1%&set /A PLAYERNAMELENGTH += 1& goto loop)
if %PLAYERNAMELENGTH% GTR 10 goto INVALIDPLAYERNAME
if %PLAYERNAMELENGTH% LEQ 0 goto INVALIDPLAYERNAME
Echo invalid player name
Ammended it to this and ran in a batch file. Works fine on all different parts of the code. No errors with Vista 32
It must be a different part of the code.
I will have a look at the rest of the code.
Thanks for your help though tranzz