home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / BBS2DRAG.ZIP / ROBOC430.ZIP / FIXFILE.BAT < prev    next >
DOS Batch File  |  1995-02-10  |  544b  |  20 lines

  1. @echo off
  2. REM - Here we handle the comment insertion...
  3. IF %2 == ZIP pkzip -z %1 <comment.txt
  4. IF %2 == ARJ arj c -zcomment.txt %1
  5.  
  6. REM - Now, we try to send any description files to the Robocomm directory...
  7. IF %2 == ZIP pkunzip %1 %ROBODIR% file_id.diz desc.sdi
  8. IF ERRORLEVEL 1 GOTO ERROR
  9. IF %2 == LZH lha e %1 %ROBODIR% file_id.diz desc.sdi
  10. IF ERRORLEVEL 1 GOTO ERROR
  11. IF %2 == ARJ arj e %1 %ROBODIR% file_id.diz desc.sdi
  12. IF ERRORLEVEL 1 GOTO ERROR
  13. GOTO END
  14.  
  15. :ERROR
  16. CLS
  17. ECHO No FILE_ID.DIZ or DESC.SDI file was found.
  18.  
  19. :END
  20.