COMPNAME Version 2.1 (updated to correct envrionment variable problems)

My name is Shane Kent ( SHAKEY1980@HOTMAIL.COM ), I am a Canadian and live in 
what is referred to as Silicon Valley North (Ottawa, Ontraio, Canada). I currently 
work on contract to Compaq Canada. I started out working for Digital Equipment 
providing support for Micosoft's Canadian customers, Microsoft contracted Digital 
to provide some of the support for their Canadian customers. Currently I provide 
technical knowledge to several support groups at Compaq (both consumer and commercial).

Aside from providing technical information to telephone support personal, I 
occassionally program (mostly C/C++ and Assembly language). COMPNAME is the second 
of many freeware tools I plan to release. The COMPNAME tools is well tested and has 
been in use for a couple of months. I will release more tools as freeware after 
sufficient testing and debugging has been done. 

The COMPNAME tool generates a unique computer name for use with the 
Windows NT DOS Client software. The COMPNAME tool sets an environment 
variable to the randomly generated name, so the variable can be used 
within DOS batch files to modify the DOS Client INI file.

The COMPNAME tool randomly generates a 32-bit number to build the 
computer name with. The letter 'I' is appended to the beginning of 
the number to form the computer name, because a computer name cannot 
start with a numeric character. The 32-bit number is represented as a 
8 digit hexadecimal number. The COMPNAME tool sets the resulting name 
to the COMPNAME environment variable.


Example:
COMPNAME=I1F5A2B97


Run the DOS "SET" command to view environment variables. The SHELL= line in the CONFIG.SYS 
file is used to control the DOS environment space as well as COMMAND.COM functionality. For 
more information on increaing the DOS environment space see MS knowledgebase articles 
Q230205 and/or Q33449.

The GSAR.EXE tool (Global Search And Replace) can be used from BAT file(s) to 
replace the contents of INI (text) files. Gsar.exe (1994) is by Tormod Tjaberg 
(tormod@oslonett.no) and Hans Peter Verne of Norway. Freely available on the 
Internet in the gsar110.zip file.

COMPNAME is freeware tool written in Borland Turbo C++ version 3.
The programming is a combination of C++ and Assembly languages.

Although COMPNAME has been well tested and I feel confident in it's functionality, 
here comes the generic message I am sure most of the computer world is used to seeing. 
This program is provided as is, I accept no liability for any damages or loss of data 
incurred during it's use. This program does not write or read to/from drives, so data 
should not be lost as a result of it's use.

Should you have any questions or feedback, please send email to the hotmail address I 
noted above.

Designed and written by: Shane Kent
Co-designed and tested by: Lewis Brewer
Date: Sept 2001
