0

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

Peaches
  • 5
  • 1
  • 4

1 Answers1

0

Don't use WHOIS as the name of your batch.

Magoo
  • 77,302
  • 8
  • 62
  • 84
  • Try http://technet.microsoft.com/en-us/sysinternals/bb897435.aspx - it's an extension from Sysinternals - not installed by default. Needs to be installed on your `path`. – Magoo May 23 '13 at 15:16