home *** CD-ROM | disk | FTP | other *** search
- /*
-
- $VER: DMSWrite.filer 2.1 (22.11.93)
-
- Author:
- Matthias Scheler (tron@lyssa.pb.owl.de)
-
- Function:
- Opens a string requester, asks for a drive and writes DMS file to the
- specified drive. After the DMS file has been written the user can
- decide to call the "Verify" command (include with Filer) to check the
- disk.
-
- Requires:
- Bin/Verify
-
- Call:
- DMSWrite FILENAME
-
- Example for "Filer.RC":
- REXXCLASS "#?.dms","DMS!","DMSWrite %s"
-
- */
-
- PARSE ARG FileName
-
- ADDRESS 'FilerRexx'
- OPTIONS RESULTS
-
- 'STATUS Extract DMS file'
- PANEL OFF
-
- DISKDRIVE=GETCLIP('FILER_DRIVE')
- IF DISKDRIVE="" THEN DISKDRIVE='DF0:'
-
- SETSTRING DISKDRIVE
- GETSTRING 'Enter target drive (e.g. "DF0:"):'
- IF RESULT="RESULT" THEN
- DO
- PANEL ON
-
- 'STATUS Extract DMS file aborted'
- EXIT 5
- END
-
- DISKDRIVE=RESULT
- SETCLIP('FILER_DRIVE',DISKDRIVE)
-
- 'STATUS Extracting DMS file "'||FileName||'" to "'||DISKDRIVE||'" ...'
- EXECANDWAIT 'DMS WRITE ' FileName ' TO ' DISKDRIVE 'NOTEXT'
-
- QUESTBOX 'Check disk for read errors ?'
- IF RESULT THEN EXEC 'Verify ' DISKDRIVE 'NOWAIT'
-
- PANEL ON
- 'HISTORY Extracted DMS file "'||FileName||'" to "'||DISKDRIVE||'".'
-