home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
arconv01.exe
/
TO3.DAT
< prev
Wrap
Text File
|
1993-06-30
|
2KB
|
89 lines
iff %NEW gt %OLD then
color bright blink red on black
echo New file created is bigger than original.
color white on black
endiff
:: Clean up:
move /rq %FILENAME.%ARC ..
del /xyzsq .
cd ..
rd $$$$TEMP.$$1
describe %FILENAME.%ARC "%@DESCRIPT[%FILENAME.%@EXT[%RUN]]"
iff %MAX == TRUE then
iff %NEW gt %OLD then
move /q %FILENAME.%@EXT[%RUN] $$$$TEMP.$$2
%DELETE %FILENAME.%ARC
return
endiff
endiff
%DELETE %FILENAME.%@EXT[%RUN]
move /q %FILENAME.%ARC $$$$TEMP.$$2
return
:syntax
echos %0 Syntax: [
color bright green on black
echos -max
color white on black
echos ] [
color bright magenta on black
echos -y | -n
color white on black
echos ] [
color bright blue on black
echos arc
color white on black
echos ]
color bright yellow on black
echo archive-filename...
color white on black
echos Where
color bright blue on black
echos arc
color white on black
echo is one of the following: arj zip lzh zoo hpk sqz ha hap arc z hyp wau
echo Default is %DEFAULT.
color bright green on black
echos -max
color white on black
echo deletes the smaller file after conversion (Default: delete original file).
color bright magenta on black
echos -n
color white on black
echo Never deletes the original or converted archive.
color bright magenta on black
echos -y
color white on black
echo Always deletes the chosen file (original or larger archive, with -max).
echo Not giving -y or -n will result in prompting for each deletion.
color bright yellow on black
echos archive-filename
color white on black
echo is the filename(s) to convert. Accepts wildcards.
echo Note: Order is important!. Give full name for archive-filenames.
echo Example 1: to arj *.zip - will convert all zip archives to arj
echo Example 2: to -max -y zip a.arc b.arj - will convert to zip the files a.arc and
echo - b.arc, deleting the smaller archive each time, without prompting.
echo Check inline documentation for more info.
goto end
:restore_order
move /q $$$$TEMP.$$2 . >& NUL
rd $$$$TEMP.$$1 >& NUL
rd $$$$TEMP.$$2 >& NUL
return
:end
endlocal
gosub restore_order
quit 0
:error
echo.
echo Aborting after error: Check directories $$$$TEMP.$$?
endlocal
gosub restore_order
quit 1