home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
bbs_ra
/
type7v2.arj
/
TYPE7.DOC
next >
Wrap
Text File
|
1991-03-12
|
4KB
|
114 lines
-=( Type7.doc )=-
What is Type7:
==============
Type7 is a little utility which I wrote to make it possible to use
LiveSystems doors as a type 15 menu-command. It reads the DORINFO1.DEF
and translates the *x commandline parameters normaly used for a type 7 in
the needed values. It doesn't translate ALL the Type7 Parameters though,
only those which have to do with the user or system information.
Which parameters:
=================
*B User Baudrate (DorInfo1.Def)
*C The value of COMSPEC (From the environment)
*F The First name of the user (all uppercase!, DorInfo1.def)
Due to the fact that RA doesn't force points between parts of names
it is possible (easy) to get the name split the wrong way..
f.e. 'Jean Paul Longname' will return 'Jean' as first name and
'Paul Longname' as last name.. Don't blame me..
*G Graphics (0:ASCII/1:ANSI/2:AVATAR/3:ANSI&AVATAR, Dorinfo.def)
*L Users lastname. (DorInfo1.def)
*P Communication port (Dorinfo.def)
*N Node nr. (Special case);
How to use:
===========
- First of all set the RA environment variable if you don't use it yet...
- Make sure the program is started from within the CURRENT RA directory!
- In the batchfile you should use the commandstring as if it was a type 7
call, but with TYPE7 in front of it..
F.e.
If you use my trivia doorgame it would normaly be called from a type 7 as:
C:\TRIVIA\TRIVIA.EXE -T:*T -N:*N -P:*P -S:OFF
it should be in the batchfile as:
TYPE7 C:\TRIVIA\TRIVIA.EXE -T:*T -N:*N -P:*P -S:OFF
Parameters not know are passed untranslated.
The doorgame is started as:
Type7
DoorGame
Leave Doorgame
Leave Type7
As you see, Type7 remains in memory while the door is run, but as it only
uses 8224 bytes of memory, that shouldn't be a problem.
Before Type7 returns control to the BBS it shows the
programname Translated in case of *C
Parameters Params as translated by TYPE7
DosError DOS error
Exitcode Exitlevel returned by the door.
This can be handy when you want to see why a program didn't run...
Just put a PAUSE behind Type7 while setting up the program.
DosErrors:
2 File not found
8 not enough memory
10 invalid environment | You shouldn't get one of those.
11 Invalid format |
Which node on a multiline system:
=================================
Type7 also looks in the current directory for a file NODE.# Where # is the
number of the node. It only looks for the filename, so you can use a null-file.
This is the only way to get node info outside RA as RA doesn't write the
nodenumber in one of the other files.
F.e.:
\ - RA -+- Line1 -- NODE.1
|
+- Line2 -- NODE.2
If no NODE.# file is found, TYPE7 defaults to node 1.
What else:
==========
Type7.exe first searches the local directory for the dorinfo1.def and the
door.sys if not found (single node setup) it searched the directory pointed
to by the RA environment variable.
If an error occurs while reading one of the files the program is halted.
Disclaimer:
===========
Use this program at your own risk, NEVER will the author be responcible for
any damage as result of running this program. I only garanthee is that
it takes (some) diskspace..
This program with source code is hereby donated to the public domain..
Enjoy,
Gerhard