|can you help me on programming a batch?|
im trying to make an ip checker input.
what i want to make is
ask what is their ip
then the scree would show "so is this your ip?"
i cant make it. i want to restict input to numbers only and (.) dot only with restricted numbers of input (i i mean how to set max character)
i tried this one:
if not "%NameCheck%"=="%firstname%" (
echo. ERROR: Name cannot be more than 8 chars
and mix it with this
set /P firstname=Type Firstname: %=%
for %%a in (1 2 3 4 5 6 7 8 9 0 .) do if defined test call set "test=%%test:%%a=%%"
if defined test (
i want to restrict the input to numbers and period with max character limit. pls help
echo The input contained characters that are not contained in a-z