home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
168.img
/
XTMK42-2.ZIP
/
AUTOEXEX.XTS
< prev
next >
Wrap
Text File
|
1990-03-06
|
2KB
|
105 lines
genlines off
genlabels off
/*
Crosstalk Mk.4 AUTOEXEX (XVI-loader) startup script
Copyright (c) 1986, 1989, Digital Communications Associates, Inc.
All rights reserved
For Crosstalk Mk. 4, v2.0 - 11-20-89 by Sheldon T. Hall
*/
ScriptDesc = "Crosstalk XVI front-end startup script"
include XTCHRDEF
include XTALTF10
include XTPAUSE
include XTPTHFND
screen terminal
RECALL_HOME_DIR
if instr(XTPATH, NEW_STR) = 0 then ...
XTPATH = NEW_STR + ";" + XTPATH
trap on
z = error
load 'XVI$STD'
z = error
trap off
fkey 40, '@do AUTOEXEX', 'Start XVI/4'
if not null(arg) then jump DO_IT
if session > 1 then ...
menus on : ...
ALTI_GENERAL : ...
fkey 40, '@do AUTOEXEX DO_IT', 'Start XVI/4' : ...
fkey 39, '@quit', 'Quit this session' : ...
end
-- PSPOOL will replace this one ...
macro spool "do pspool %0"
-- Normal stuff from here on out
macro prn printer %1
macro clr clear #16
macro dr drive %1
macro end "print : print : print ,, 'Type QUIT to quit Crosstalk'"
macro lo load %1
macro menu do xvi
macro xvi do xvi
macro sa save %1
macro sp speed %0
label DO_IT
hide #20
hide #0
e0 = "Error"
e1 = "Can't find the " + hilite
e2 = lolite + " subdirectory"
e3 = lolite + " script"
p1 = "Press " + keylite + " Enter " + lolite + " to end"
STORE_DIR
trap on
cd "\X4XVI"
if error then ...
PAUSE e0, e1 + "\X4XVI" + e2, p1 : ...
end
hide #20
menus off
do "XVI"
if error then
if errclass = 21 and errno = 1 then ...
PAUSE e0, e1 + "XVI.XTC" + e3, p1 : ...
menus on : ...
end
menus on
RECALL_DIR
if null(NEW_STR) then end
drive left(NEW_STR, 1)
toss = error
cd mid(NEW_STR, 3)
toss = error
trap off
end ""