home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zipbo111.zip / ZIPBRREG.CMD < prev    next >
OS/2 REXX Batch file  |  1994-04-02  |  863b  |  33 lines

  1. @echo off
  2. echo -----== ZIP Brand FAST v1.11 Registration Script ==-----
  3.  
  4. rem This is the ZIP Brand FAST v1.11 Registration Batch File.
  5. rem It is necessary to do the registration this way becaue
  6. rem of the way OS/2 locks running files. Any suggestions on
  7. rem how to do this more elegantly is higly appreciated...
  8.  
  9. if not exist ZIPBRAND.EXE goto errordir
  10.  
  11. copy ZIPBRAND.EXE ZIPb$REG.EXE >NUL
  12. if not exist ZIPb$REG.EXE goto errornotcopy
  13.  
  14. ZIPb$REG.EXE ZbF$~Reg
  15.  
  16. attrib -h -s -r ZIPb$REG.EXE >NUL
  17. del ZIPb$REG.EXE >NUL
  18. if exist ZIPb$REG.EXE goto errornotdele
  19. goto end
  20.  
  21. :errordir
  22. echo ERROR - Must be run from the same location as ZIPBRAND.EXE.
  23. goto end
  24.  
  25. :errornotcopy
  26. echo ERROR - Could not copy ZIPBRAND.EXE. (Hidden? System? Locked?)
  27. goto end
  28.  
  29. :errornotdele
  30. echo WARNING - Could not delete temporary file: ZIPb$REG.EXE.
  31. goto end
  32.  
  33. :end