@echo off REM ///////////////////////////////////////////// REM This is a sample ExtractDIZ.Cmd for AdeptXBBS REM It will check for a FILE_ID.DIZ in ZIP files REM and extract, rename it, and return to the BBS REM ///////////////////////////////////////////// REM ////////////////////////////////////////// REM Command line parms are as follows: REM %1 = Complete filename to work on REM %2 = Line number REM %3 = Com port file handle REM %4 = Just filename (no path, no extension) REM %5 = Just extension REM %6 = Just Drive:Path REM ////////////////////////////////////////// CD \Adept\System\Line%2 REM //////////////////////// REM add more lines for more REM archive types.. REM //////////////////////// IF %5==ZIP GOTO ZIP GOTO End :ZIP UNZIP -C %1 FILE_ID.DIZ IF EXIST FILE_ID.DIZ REN FILE_ID.DIZ %4.Description ELSE GOTO NONE CD \Adept :NONE CD \Adept :End