I have the following batch script:
@ECHO OFF
SET "TLD=.com"
FOR /F "tokens=*" %%i in (%cd%filesdomains-win.txt) do (
whoiscl -r -n %%i%TLD% | FINDSTR /I /C:"Registrant Name">NUL 2>&1
SET "OUTPUT=%%i%TLD%"
IF not "%OUTPUT%" == "" (
ECHO Registered: %%i%TLD%
) ELSE (
ECHO Available: %%i%TLD%
)
)
I want to check if FINDSTR's output is matching Registrant Name, than ECHO Registered in an if else. How can it be achieved?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 189
تاريخ: سه
شنبه
4 خرداد
1395 ساعت: 16:45