@ECHO OFF IF "%1"=="" GOTO USAGE IF NOT EXIST %1.WAD GOTO FILE_ERROR IF NOT EXIST BLANK.WAD GOTO BLANK_ERROR COPY /b /y %1.wad+blank.wad %1.wad GOTO END :BLANK_ERROR ECHO. ECHO. ECHO ERROR: Cannot find file BLANK.WAD in current directory. ECHO. GOTO END :FILE_ERROR ECHO. ECHO. ECHO ERROR: Cannot find file %1.WAD. ECHO. GOTO END :USAGE ECHO. ECHO. ECHO USAGE: ADDBLANK Wadfilename[.WAD] ECHO. :END