home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
dosk-1.0.lha
/
DosK
/
Commands
/
cdk
< prev
next >
Wrap
Text File
|
1995-01-04
|
1KB
|
67 lines
failat 21
prompt %S >env:PMT
alias rq requestfile
alias rc requestchoice
alias MV_K Sys:Utilities/Multiview
LAB MORE
rc >env:ans "CdK ©November 1994 By Kenneth J. McCormick. All Rights Reserved" "SELECT A DIRECTORY BUTTON" "DIR UP" "ROOT" "SELECT" "SEE DIR" "DEFAULT" "BYE"
IF $ANS EQ "1"
CD /
DIR >RAM:Cr2_K
$pmt >ram:Cr1_K
join ram:Cr1_K Ram:Cr2_K as ram:DIRECTORY
MV_K RAM:DIRECTORY
ENDIF
IF $ANS EQ "2"
CD :
DIR >RAM:Cr2_K
$pmt >ram:Cr1_K
join ram:Cr1_K Ram:Cr2_K as ram:DIRECTORY
MV_K Ram:DIRECTORY
ENDIF
IF $ANS EQ "3"
RQ >ENV:PICK TITLE="SELECT DIRECTORY OR VOLUME" NEGATIVE="FORGET IT!!" DRAWERSONLY
IF $PICK EQ "0"
SKIP REDO
ELSE
CD $PICK
DIR >RAM:Cr2_K
$pmt >ram:Cr1_K
join ram:Cr1_K Ram:Cr2_K as ram:DIRECTORY
MV_K RAM:DIRECTORY
ENDIF
ENDIF
IF $ANS EQ "4"
DIR >RAM:Cr2_K
$pmt >ram:Cr1_K
join ram:Cr1_K Ram:Cr2_K as ram:DIRECTORY
MV_K RAM:DIRECTORY
ENDIF
IF $ANS EQ "5"
CD SYS:
DIR >RAM:Cr2_K
$pmt >ram:Cr1_K
join ram:Cr1_K Ram:Cr2_K as ram:DIRECTORY
MV_K RAM:DIRECTORY
ENDIF
IF $ANS EQ "0"
SKIP FIN
ENDIF
LAB REDO
SKIP MORE BACK
LAB FIN
UNALIAS MV_K
UNALIAS RC
UNALIAS RQ
IF EXISTS RAM:CR1_K
DELETE RAM:CR1_K QUIET
ENDIF
IF EXISTS RAM:CR2_K
DELETE RAM:CR2_K QUIET
ENDIF
IF EXISTS RAM:DIRECTORY
DELETE RAM:DIRECTORY QUIET
ENDIF
prompt "%N.%S>"