home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: lzx.dopus 1.00 22-Feb-95
-
- Funktion: LZX Archiver. Mit Hilfe diese Progamms kann eine
- erhebliche Steigerung des Auswertens der selectierten Eintraege
- erreicht werden.
- Quelledir: Wird hier etwas selectiert, so wird nur dieses archiviert.
- Ist nichts selectiert, dann wird alles archiviert.
- ZielDir: Ist hier ein File selectiert, und dies traegt auch noch den
- Suffix des Archiver-Programms, dann erscheint der Filename mit im
- DOpusrequest, wo das Ziel Archiv angegeben wird.
-
- Benoetigt werden:
- rexxreqtools.library, rexxsupport.library
- DOpus 4.0+ runing
- temporaeres Dir "t:"
- OS 2.0+
- Pack-Programm: LZX
-
- Aufruf: RX LZX.DOPUS {p} ( als AmigaDos starten !! )
- Quellpath mit oder ohne selectierten Files
- Destpath mit oder ohne selectiertem File
- - Outputwindow
- - cd quelle
-
- Programmierer: Henryk Richter, Stephan Jantzen Ring 47, 18106 Rostock,
- basierend auf einem Script von Lutz Hanke
- */
- parse arg portname
-
- if ~show('l','rexxreqtools.library') then do
- if ~addlib('rexxreqtools.library',0,-30,37) then exit 20
- end
- if ~show('l','rexxsupport.library') then do
- if ~addlib('rexxsupport.library',0,-30,34) then exit 20
- end
-
- OPTIONS RESULTS
- ADDRESS value portname
-
- suffix = '.lzx'
-
- 'Status 3'
- active = RESULT
- inactive = active ^ 1
-
- 'status 13' inactive
- path = result
- 'Getselectedfiles /' inactive
- if result ~= 'RESULT' then do
- PARSE VAR result temp'/'result
- if pos(upper(suffix),upper(temp)) > 0 then do
- temp = left(temp,length(temp)-length(suffix))
- path = path || temp
- end
- end
-
- getstring "'Bitte Namen des Archives eingeben'" path
- if rc = 1 then exit 20
- if result = '' then do
- 'request kein Name eingegeben'
- exit 20
- end
- path = result
-
- if pos(upper(suffix),upper(path)) > 0 then
- path = left(path,length(path)-length(suffix))
-
- path = '"' || path || suffix || '"'
-
- select = 0 /* es wurde etwas selectiert */
- selected = ""
-
- 'Getselecteddirs /' /* dirs auslesen */
- if result ~= 'RESULT' then do
- selectedd = result
- DO WHILE selectedd ~= ''
- PARSE VAR selectedd name'/'selectedd
- selected = selected || '"' || name || '/#?" '
- end
- select = 1
- end
-
- 'Getselectedfiles /' /* files auslesen */
- if result ~= 'RESULT' then do
- selectedd = result
- DO WHILE selectedd ~= ''
- PARSE VAR selectedd name'/'selectedd
- selected = selected || '"' || name || '" '
- end
- select = 1
- end
-
- if select ~= 0 then /* selectiert */
- address 'COMMAND' 'Lzx -r -a -e -3 -x -M10000 a' path selected
- else do /* nichts selectiert */
- 'status 13' active
- source = RESULT || #?
- address 'COMMAND' 'Lzx -r -a -e -3 -x -M10000 a' path source
- end
- exit 0
-