@echo off
cls
if "%1" == "OK" goto start
if "%1" == "ok" goto start
echo off
echo [ WaR OBV/2 v2.30 Serial Number Extractor ]
echo.
echo Before running OBV23REG for the 1st time, read WAR.NFO
echo for the instructions on how to use this thing right
echo Once you've done that, run this batch file again like
echo this OBV23REG OK, got it!?
echo.
echo - ─── -
goto end1
:start
if not exist patch.com goto nofile
if not exist extract.com goto nofile
if not exist obv.exe goto noobv
copy obv.exe ##obv##.exe > NUL
if not exist ##obv##.exe goto notcopied
patch
if errorlevel 255 goto end
extract x
##obv##.exe -config
echo
echo WooHoo! We got it! Here is your OBV/2 serial number
echo.
extract r > serial.num
type serial.num
echo.
echo.
goto end
:nofile
echo Hey! Hey! Not all the files are here bub! One or both of the these
echo files are missing: PATCH.COM and/or EXTRACT.COM...
goto end
:noobv
echo
echo Doh! OBV.EXE is either toast or you're in the wrong directory!
goto end1
:notcopied
echo
echo We ran outta disk space or something happened trying to backup OBV.EXE
goto end1
:end
del ##obv##.exe > NUL
:end1