@echo off
if not exist stub.exe goto errorns
if not exist %1 goto errornf
copy /b stub.exe+%1 %1.exe
del %1
goto end

:errornf
echo Can't find file %1
goto end

:errorns
echo This batch file must be run in the same directory as STUB.EXE
:end
