@echo off
if "%~dpnx1"=="" goto usage

:scriptStart
"%~dp0WadDataInfo.exe" /n "%~dpnx1"
if errorlevel 1 pause
echo.
if errorlevel 1 goto usage

set ww_idrv=%~d1
set ww_ipath=%~dp1
set ww_iname=%~n1
set ww_iext=%~x1
call "%~dp0task-wwunpack.bat" "%~dpnx1"
@echo off
goto end

:usage
echo Usage:
echo Drag and drop the wad files onto the icon of this batch script.
echo.

:end
shift /1
if not "%~dpnx1"=="" goto scriptStart
pause
echo.
