home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
arc
/
Disk-Archiver
/
xDM
/
xDM13
< prev
next >
Wrap
Text File
|
1995-07-20
|
3KB
|
148 lines
.bra {
.ket }
; $VER: xDM v1.3 (20.7.95)
Cd >ENV:origcd
If NOT EXISTS LZX
If NOT EXISTS C:LZX
Echo "LZX tool not installed... exiting"
Skip getout
EndIf
EndIf
If NOT EXISTS dd
Echo "dd tool not installed... exiting"
Skip getout
EndIf
If NOT EXISTS PackDev
Echo "PackDev tool not installed... exiting"
Skip getout
EndIf
If NOT EXISTS ENV:xdm
If NOT EXISTS ENVARC:xdm
Echo >ENV:xdm "T:" NOLINE
Else
Copy >NIL: ENVARC:xdm TO ENV:
EndIf
EndIf
LAB begin
RequestChoice >ENV:xdmaction "xDM" "Select Action" "Compress" "Decompress" "QUIT"
If $xdmaction EQ "0"
Skip getout
EndIf
LAB startpack
RequestChoice >ENV:xdmdev "xDM" "Select Device" "DF0:" "DF1:" "DF2:" "DF3:" "RAD:" "BACK"
If $xdmdev EQ "0"
Skip cleanup
EndIf
Eval >ENV:xdmdrvdef $xdmdev - 1
Echo >ENV:xdmdrive "DF$xdmdrvdef:"
If $xdmdev EQ "5"
If NOT EXISTS RAD:
Echo "Mounting RAD and restarting..."
Mount RAD
Skip cleanup
EndIf
Echo >ENV:xdmdrive "RAD:"
Endif
If $xdmaction EQ "1"
Skip compress
EndIf
If $xdmaction EQ "2"
Skip decompress
EndIf
LAB compress
RequestFile >ENV:xdmdest DRAWER $xdm FILE ".xdm" PATTERN "#?.xdm" TITLE "Select Destination File" NOICONS
If WARN
Skip cleanup
EndIf
RequestChoice >ENV:xdmall "xDM" "Is the disk using any alien filesystem? (see docs)" "YES" "NO" "RESTART"
If $xdmall EQ "0"
Skip cleanup
EndIf
If $xdmall EQ "1"
Echo >ENV:xdmall "ALL"
EndIf
If $xdmall EQ "2"
Echo >ENV:xdmall
EndIf
Echo "
xDM - ©1995 Adam Chapman & Dirk Vael
"
Echo "Creating disk image... Please wait!"
Cd $xdm
PackDev $xdmdrive xDM NC Q $xdmall
If ERROR
Echo "Sorry, some error has occured... Make sure all needed files and disks are present."
Skip cleanup
EndIf
Echo "Archiving image... Please wait!"
Cd $xdm
LZX -3 -X0 -U0 -M1024 a $xdmdest xDM.pkd
List $xdmdest LFormat %L >ENV:size
Echo "The disk was mashed into an archive of
$size
bytes!"
Skip cleanup
LAB decompress
RequestFile >ENV:xdmdest DRAWER $xdm FILE ".xdm" PATTERN "#?.xdm" TITLE "Select Archive" NOICONS
If WARN
Skip cleanup
EndIf
Echo "
xDM - ©1995 Adam Chapman & Dirk Vael
"
Echo "Decompressing image... Please wait!"
LZX -X0 x $xdmdest $xdm
Echo "Recreating disk image... Please wait!"
Cd $xdm
PackDev xDM.pkd $xdmdrive NC Q ETDF
If ERROR
Echo "Disk image (probably) created with xDM V1.0-V1.2"
Echo "xDM is now trying the old routines to restore... Hold on!"
dd -c1760 -w$xdmdrive xDM.dsk
If ERROR
Echo "Sorry, some weird error has occured... Check docs for troubleshooting!"
Skip cleanup
EndIf
EndIf
Echo "Process complete!"
DiskChange $xdmdrive
LAB cleanup
Cd $xdm
Delete >NIL: xDM.pkd
Delete >NIL: xDM.dsk
Cd ENV:
Delete >NIL: xdmdev xdmall xdmdrvdef xdmdrive xdmdest xdmaction
Skip begin BACK
LAB getout
Cd $xdm
Delete >NIL: xDM.pkd
Delete >NIL: xDM.dsk
Cd ENV:
Delete >NIL: size xdmall xdmdev xdmdrvdef xdmdrive xdmdest xdmaction
Cd "$origcd"
Delete >NIL: ENV:origcd