>>550 @echo off set "arg1=%1" call :check_num arg1 result echo %result% & pause & goto :eof :check_num setlocal EnableDelayedExpansion set "b=FALSE" for /f "delims=0123456789 tokens=*" %%i in ("!%1!") do ( set "a=%%i" & if not defined a set "b=TRUE" ) :x endlocal & set "%2=%b%" goto :eof