home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma23.dms / ma23.adf / Filer / Rexx / ZoomDecompress.filer < prev   
Text File  |  1993-11-27  |  944b  |  48 lines

  1. /* 
  2.  
  3.    $VER: ZoomDecompress.filer 2.0 (22.11.93)
  4.  
  5.    Author:
  6.     Matthias Scheler (tron@lyssa.pb.owl.de)
  7.  
  8.    Function:
  9.     Opens a string requester, asks for a drive and writes a Zoom file to the
  10.     specified drive.
  11.  
  12.    Call:
  13.     ZoomDecompress FILENAME
  14.  
  15.    Example for "Filer.RC":
  16.     REXXCLASS "#?.zom","","ZoomDecompress %s"
  17.  
  18. */
  19.  
  20. PARSE ARG FileName
  21.  
  22. ADDRESS 'FilerRexx'
  23. OPTIONS RESULTS
  24.  
  25. 'STATUS Decompress Zoom file'
  26. PANEL OFF
  27.  
  28. DISKDRIVE=GETCLIP('FILER_DRIVE')
  29. IF DISKDRIVE="" THEN DISKDRIVE='DF0:'
  30.  
  31. SETSTRING DISKDRIVE
  32. GETSTRING 'Enter target drive (e.g. "DF0:"):'
  33. IF RESULT="RESULT" THEN
  34.  DO
  35.   PANEL ON
  36.   'STATUS Decompress Zoom file aborted'
  37.   EXIT 5
  38.  END
  39.  
  40. DISKDRIVE=RESULT
  41. SETCLIP('FILER_DRIVE',DISKDRIVE)
  42.  
  43. 'STATUS Decompressing Zoom file "'||FileName||'" to  "'||DISKDRIVE||'" ...'
  44. EXEC 'Zoom FROM '||FileName||' TO '||DISKDRIVE||' CLEARBLOCKS VERIFY'
  45.  
  46. PANEL ON
  47. 'HISTORY Decompressed Zoom file "'||FileName||'" to "'||DISKDRIVE||'".'
  48.