Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Win9x question...



I don't know what kind of API support you have in QBasic. You should not do 
a registry search (just for portability if for other reasons). 
Another thing you could do is to call the ipconfig command (with the /all 
parameter) and parse the output (assuming that you have the IP protocol 
stack installed). 
On 26 Jun 2002 at 10:48, Ben Jackson wrote:

> Well, in the wonderful world of Win32, most config data isn't kept in
> files, its kept in the horrid mess that is the Registry. They key in Win95
> is:
> 
> HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName:
> "ComputerName"
> 
> Along with the network portion of the same data:
> 
> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP:
> "ComputerName"
> 
> I can't verify this now as we no longer have 9x machines at work, but I
> shuffled through one of my stacks of paper and found this.
> 
> HTH
> 					~Ben
> 
> --
> /"\	Ben Jackson
> \ /     bejackso at lynx.dac.neu.edu - http://piro.dnsq.org/~bbj
>  X      Member of the ASCII Ribbon Campaign Against HTML Mail
> / \
> 
> 
> 
> On Wed, 26 Jun 2002, kgleason at ma.ultranet.com wrote:
> 
> > Does anyone know of a file location in Windows 9x where the Computer Name is consistently stored? I am trying to access this information directly from a QBasic program. I tried doing a search for text and came up with the USER.DAT and SYSTEM.DAT files in the \WIndows directory. 
> > It would be nice if there was one location where computer name was listed in a fixed location or where I knew the number of bytes following a variable. Can anyone help?
> > 
> > Thanks.
> > Kevin
> > 
> > --------------------------------------------------------------------
> > mail2web - Check your email from the web at
> > http://mail2web.com/ .
> > 
> > _______________________________________________
> > Discuss mailing list
> > Discuss at blu.org
> > http://www.blu.org/mailman/listinfo/discuss
> > 
> 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss


--
Jerry Feldman <gaf at blu.org>
Associate Director
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org