I was wondering if someone could tell me where I am going wrong with this batch file?

Code:
REM change the value for those variable
SET URL=http://wepage.com
SET SECONDS=5
SET DESTINATION=D:\Temp\Cache
SET BatchDir=D:\Temp\MultipleGen
SET NetscapeCache="E:\Internet\Web Browsers\Netscape 4.80\Users\Crash1hd\Cache"

@echo off
cd\
color b
cls
If not "%OS%" == "Windows_NT" goto end
If "%URL%" == "" goto end
If "%SECONDS%" == "" goto end
echo @echo off > %BatchDir%\wait%seconds%.cmd
echo waitfor -t %SECONDS% timeout >> %BatchDir%\wait%seconds%.cmd
echo taskkill /f /im netscape.exe >> %BatchDir%\wait%seconds%.cmd
echo EXIT >> %BatchDir%\wait%seconds%.cmd
Set Code=9999
:again
Set /A Code=%Code%+1
start "WAIT" %BatchDir%\wait%seconds%.cmd
"E:\Internet\Web Browsers\Netscape\Netscape 4.80\Program\netscape.exe" %URL%/Ab%Code%.html
kill WAIT
cls
echo.
echo Current Code is: %Code%
xcopy "%NetscapeCache%\*.*" "%destination%" /C /I /Y
IF /I "%Code%" GTR "99999" goto end
IF exist %DESTINATION%\???????.htm goto lastcode
IF exist %DESTINATION%\????????.htm goto lastcode
IF exist %DESTINATION%\?????????.htm goto lastcode
IF exist %DESTINATION%\???????.html goto lastcode
IF exist %DESTINATION%\????????.html goto lastcode
IF exist %DESTINATION%\?????????.html goto lastcode
goto again
:lastcode
echo %code% >> %0.txt
:end