SET "var="&for /f "delims=0123456789" %%i in ("%1") do set var=%%i
if defined var (echo %1 NOT numeric) else (echo %1 numeric)
Replace %1
with %yourvarname%
as appropriate
More Related Contents:
- How can you find and replace text in a file using the Windows command-line environment?
- How do I run two commands in one line in Windows CMD?
- How to check if a process is running via a batch script
- How to echo with different colors in the Windows command line [closed]
- Parallel execution of shell processes
- How to run a PowerShell script without displaying a window?
- Escape percent in bat file
- Windows Batch File Looping Through Directories to Process Files?
- Secure FTP using Windows batch script
- Capture output command CMD
- Why does ECHO command print some extra trailing space into the file?
- Is there a way to redirect ONLY stderr to stdout (not combine the two) so it can be piped to other programs?
- Why does only the first line of this Windows batch file execute but all three lines execute in a command shell?
- Batch file to split .csv file
- Running another program in Windows bat file and not create child process
- How to echo “2” (no quotes) to a file, from a batch script?
- Why does this batch variable never change even when set?
- echo -e equivalent in Windows?
- File is older than 4 minutes in Batch file
- How do I get the equivalent of dirname() in a batch file?
- Why doesn’t my stderr redirection end after command finishes? And how do I fix it?
- How to get windows batch’s parent folder
- windows batch file with goto command not working
- How to read input from console in a batch file?
- How can I source variables from a .bat file into a PowerShell script?
- Windows Batch file to echo a specific line number
- Batch create folders based on part of file name and move files into that folder
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings
- Global NPM package installed but command not found