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
Outlook 2010 NK2 file
copy outlook express from one pc to new windows 7 pc into outlook 07?
Add Spanish dictionary in to Office 2007 english
Difference between Icefaces,myfaces,richfaces
in JSF?
How to retrieve a Joomla database password - GoDaddy installation
acronis disk director server 10
How many keywords is too many in the meta data?
HP z200 Workstation Windows 2008 R2 'PCI serial port' driver and 'PCI Simple Communications controller' driver needed
Install issue: XenApp 5 Feature Pack 3 on W2K8x64
Windows firewall will not start