Text 通过从文本文件中读取域的
我正在尝试对大约50个域进行WHOIS,我在这里搜索并找到了一个脚本,它看起来很有效,但当我运行它时,它显示: “已达到最大setlocal递归” 进程无法访问该文件,它正被另一进程使用 这是代码Text 通过从文本文件中读取域的,text,batch-file,whois,Text,Batch File,Whois,我正在尝试对大约50个域进行WHOIS,我在这里搜索并找到了一个脚本,它看起来很有效,但当我运行它时,它显示: “已达到最大setlocal递归” 进程无法访问该文件,它正被另一进程使用 这是代码 @echo off setlocal for /F "tokens=* EOL=# delims=" %%D in (e:\domains.txt) do call :reportit "%%~D" endlocal goto :eof :reportit setlocal set "domain
@echo off
setlocal
for /F "tokens=* EOL=# delims=" %%D in (e:\domains.txt) do call :reportit "%%~D"
endlocal
goto :eof
:reportit
setlocal
set "domain=%~1"
echo " Retrieving details for: %domain%"
echo " WHOIS: %domain%" >> e:\results.txt
echo "=============================================================" >> e:\results.txt
whois %domain% >> e:\results.txt
timeout 8
endlocal
exit /b
任何帮助都将不胜感激不要将WHOIS用作批处理的名称。请尝试-这是Sysinternals的扩展-默认情况下未安装。需要安装在您的
路径上
。网站名称为whois.net
。这不是一个shell命令。