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 | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Win9x question...



Wizard,

I'm trying to do a programmed query rather than an interactive one. I want my program to go out onto the local network to see 'who's there'? I can parse through the System.dat registry file if I know the name (perhaps I will have to do this) but was wondering if anyone knew of a faster file that has this.

Kevin

Original Message:
-----------------
From: Wizard wizard at neonedge.com
Date: Wed, 26 Jun 2002 15:20:59 -0400
To: kgleason at ma.ultranet.com, discuss at blu.org
Subject: RE: Win9x question...


On Wed, 26 Jun 2002, kgleason at ma.ultranet.com wrote:

> 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?

You could try using a shell command such as "net user" to get the machine
name.
This is what it does on my Win2k machine:
===================================================
C:\> net user

User accounts for \\RAGE

-----------------------------------------------------------------
Administrator            Grant_M                    VUSR_RAGE
The command completed successfully.

====================================================
Where "\\RAGE" is the machine name. I don't know if it shows other Windows
machines, as this is the only Win box on the network.

_______________________________________________
Discuss mailing list
Discuss at blu.org
http://www.blu.org/mailman/listinfo/discuss

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





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