I am trying to do a WHOIS for around 50 domains, i have searched on here and found a script that looks like it works but when i run it, it says: "The Maximum setlocal recursion has been reached" "The Process can not access the file, it is being used by another process"
Here is the code.
@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
Any help will be much appreciated