Microsoft
Software
Hardware
Network
Question : Batch File Check For Numeric Digits
Hi,
So here's the situation, I need to create a batch file that will look at a text file in the same directory - if the text file has no numbers in it - it will skip the section and move to the next step. If there are numbers than it should execute a command and then move to the next step.
The text files will always be a constant name, I will be creating multiple for different reports.
Any thoughts or programs that I can use to do this?
Thanks,
Ryan
Answer : Batch File Check For Numeric Digits
@echo off
findstr /R /C:"[0-9]" test.txt > NUL
if "%ERRORLEVEL%"=="1" goto nonumbers
echo Found Numbers
goto end
:nonumbers
echo No numbers
:end
Random Solutions
QOS And routing behind a bridged device on Cisco 2800 series router
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
Redirecting Users Based on Input
Can anyone guide me how to download MEMO software back to N900 ?
What are some good guides on designing and building video games
Worldspan - calling worldspan web service
Popup details on mouse hover using Jquery
Linq and new features design in VS 2008
Trouble installing Panasonic Printer/Copier devices on SBS 2008
How Can I Turn Off the Record Selector Bar on an Inserted SubForm?