home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
dosk-1.0.lha
/
DosK
/
Commands
/
AliasK
< prev
next >
Wrap
Text File
|
1995-01-04
|
2KB
|
69 lines
FAILAT 21
LAB START
IF EXISTS RAM:TFILE1
DELETE RAM:TFILE1 QUIET
ENDIF
IF EXISTS RAM:TEMPFILE
DELETE RAM:TEMPFILE QUIET
ENDIF
IF EXISTS RAM:USER-ALIASES
DELETE RAM:USER-ALIASES QUIET
ENDIF
IF EXISTS RAM:ALIASTEMP
DELETE RAM:ALIASTEMP QUIET
ENDIF
REQUESTCHOICE >ENV:MAIN "AliasK ©January 1995 By Kenneth J. McCormick. All Rights Reserved" "Choice Please" "CONTINUE" "LIST" "BYE"
IF $MAIN EQ "0"
SKIP FIN
ENDIF
IF $MAIN EQ "2"
REQUESTCHOICE >ENV:MAIN2 "AliasK" "Pick One" "ACTUAL" "USER-ALIASES LIST"
IF $MAIN2 EQ "1"
ALIAS >RAM:ALIASTEMP
SYS:UTILITIES/MULTIVIEW RAM:ALIASTEMP
SKIP BACK START
ELSE
IF EXISTS SYS:S/USER-ALIASES
SYS:UTILITIES/MULTIVIEW SYS:S/USER-ALIASES
ENDIF
SKIP BACK START
ENDIF
ENDIF
REQUESTFILE >ENV:FILE TITLE="PICK FILE/PATH FOR ALIAS"
REQUESTFILE >ENV:FILEA TITLE="TYPE ALIAS ON FILE LINE"
REQUESTCHOICE >ENV:CHO "AliasK" "Decision Time" "DO IT" "ABORT" "BYE"
IF $CHO EQ "0"
SKIP FIN
ENDIF
IF $CHO EQ "1"
ALIAS $FILEA $FILE
REQUESTCHOICE >ENV:CHO2 "AliasK" "" "NEXT" "PERMANENT" "BYE"
IF $CHO2 EQ "0"
SKIP FIN
ENDIF
IF $CHO2 EQ "1"
SKIP BACK START
ENDIF
IF $CHO2 EQ "2"
ECHO >RAM:TEMPFILE "ALIAS" $FILEA $FILE
LAB REDO
IF EXISTS SYS:S/USER-ALIASES
ELSE
ECHO >SYS:S/USER-ALIASES ";USER ALIAS LIST"
SKIP BACK REDO
ENDIF
COPY SYS:S/USER-ALIASES TO RAM:
RENAME RAM:USER-ALIASES AS TFILE1
JOIN RAM:TFILE1 RAM:TEMPFILE AS RAM:USER-ALIASES
COPY RAM:USER-ALIASES TO SYS:S
DELETE RAM:TFILE1 RAM:TEMPFILE RAM:USER-ALIASES RAM:ALIASTEMP QUIET
ENDIF
ENDIF
SKIP BACK START
LAB FIN
UNSETENV FILE
UNSETENV FILEA
UNSETENV CHO
UNSETENV CHO2
UNSETENV MAIN