As the question says..
For example set /p a=Number or letter
How to write it?? (It's a randomly entered number)
For example set /p a=Number or letter
How to write it?? (It's a randomly entered number)
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
:begin
cls
set input=
set /p input= Please enter a string:
if "%input%"=="" goto begin
echo.
echo %input%|findstr "^*$">nul && echo The string you entered is purely numeric||(
echo %input%|findstr "^*$">nul && echo The string you entered is purely alphabetic||echo The string you entered is neither purely numeric nor purely alphabetic
)
echo.
pause
goto begin
| Rater | Score | Time |
|---|---|---|
| redtek | +3 | 2006-11-24 11:23 |
| Rater | Score | Time |
|---|---|---|
| redtek | +3 | 2006-11-24 22:27 |