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
Unable to read contents of mail.box as a notes administrator
htaccess 302 redirect - seamless hidden url
Are multiple PHP session paths possible?
Remote Desktop not working via IP address
The user profile service failed the logon.
Backup Exec 12 - can't install any updates - gives error 1324 "The path Program Files contains an invalid character"
asp.net I have a sqldatasource select witha a where that searches between dates
How to connect to network printer linux
Microsoft RDP 7 Not Working
use wireshark to capture whats happening during the logon process