Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Text 通过从文本文件中读取域的_Text_Batch File_Whois - Fatal编程技术网

Text 通过从文本文件中读取域的

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

我正在尝试对大约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=%~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命令。