home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
dosutils
/
name01.arj
/
NAME.DOC
< prev
next >
Wrap
Text File
|
1991-07-13
|
5KB
|
117 lines
NAME.COM 1.01 - 14 July 1991
1. What is NAME.COM?
NAME.COM is a trival program that extracts the user name from your current
login and places it in an enviornmental variable "NAME" in your master env-
ironment. This program has been tested with MS DOS 3.1, 3.3, 4.01, and 5.0.
It should work with any version of DOS that has a standard COMMAND.COM. It
makes use of the undocumented INT 2E function call to locate the master env-
ironment. As this program places the variable directly in the Master Env-
ironment, the variable can be used from within the same batchfile that calls
name.com. This is the difference between this version and the previous ver-
sion. The program is semi intelegent, you do not need to set up a dummy
variable with a set command to receive the value, and the variable name is
the program name. If you rename name.com to user.com then user.com will in-
sert the variable user in the master env. ie:
if you logon with: NET LOGIN \\SERVER RICK
Run name.com, the master environment will contain: NAME=RICK.
rename name.com user.com and run user.com the environment will contain:
USER=RICK.
This means that the following lines added to any batch file will call a
batchfile with the users name.
name
call %name%
Name.com can be run as many times as you like, the master environment will
only be updated when the value is changed and Name will not leave many
copies in the same variable in the environment. Another advantage to name
is that it does NOT pad the variable with spaces as NET STRING will.
2. How do I install NAME.COM?
Installation of NAME could not be easier, just copy NAME.com into a
directory on your path.
3. How do I use NAME.COM?
Insert NAME in the batch file you use to boot the network, after the login
commands. The environmental variable NAME will be available from then on.
You can access this variable with the %NAME% line in any batch file.
Echo %NAME% will display the user name on the screen.
Echo %NAME%>>log.dat will add a line to the file log.dat with the user name
Call %NAME% will call a batch file using the user's name.
4. Legalities
NAME.COM is not freeware, nor is it in the public domain. It is a
shareware program, and the entire program and documentation are
Copyright (C) 1991, Rick R. Roth, Tucson, Az. You are encouraged
to copy the package freely, including distribution by BBS, shareware
library, or other means, provided that (1) the distribution shall
consist of the original archive containing the program and this doc-
umentation file, and (2) no fee of more than five US dollars ($5)
shall be charged for the copy.
5. Registration
As I said this is a trivial program, registration is easy, if you like the
program and use it send a post card stating so, if you like the program but
would like to see some changes, send a post card with suggestions, if you
don't like the program, don't use it!
To register your copy of NAME.COM send a postcard to:
Rick R. Roth
4072 E. 22nd St.
Suite 178
Tucson, Az 85711
THIS COPY IS LICENSED FOR THE EXCLUSIVE USE OF THE LICENSEE.
This license is good for one network, and the software can be installed
on all computers on this network.
6. Liability
╔═══════════════════════════════════════════════════════════════╗
║ ║
║ LIMIT OF LIABILITY ║
║ ────────────────── ║
║ The author disclaims all warranties, expressed or ║
║ implied and assumes no liability for damages either from its ║
║ direct use or as a consequence of its use. Have you hugged ║
║ your backup today? ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
I have tested it on several computers and found that found that it works
well on all of them. All computers have been running LANtastic(tm) NOS v3.03
and above and all running MS DOS 3.3 and above.
Please note that while the author is an employee of Artisoft, Inc., Artisoft
is not responsible for the contents of this file; the functioning of
NAME.COM (or any damages resulting from the use or misuse of the program);
and further, Artisoft Technical Support and other employees of Artisoft,
Inc. are
NOT RESPONSIBLE FOR SUPPORTING THIS PROGRAM!
If you have problems or suggestions when using this program, direct them to
me Rick R. Roth through one of the following channels:
US Mail: 4702 E 22nd St, Tucson, AZ 85711
CompuServ: Artisoft forum, 75300,1377
Arti-facts BBS: If you have a current account there.
Do NOT call the author during business hours for support, this program was
not written during business hours, it will not be supported during business
hours.
LANtastic is a registered trade mark of Artisoft, INC.