Right, first of all, sorry that I haven't been around for a while, I've just been held up trying to learn some new stuff. Apologies to all :-)

Now, I am looking to create a program, pref in DOS, that scans for users on a network, produces a list of them, allows you to select a user and instantly send a message to them.

The easiest command I have found is 'NET SEND' under WIN 2K /XP. but, in the current program I have, you have to type out the name and the message, which can be quite annoying, when the users have ridiculous names. And rather than going to Network Places, and finding the users, I want to get the program to search for them automatically. This will probably be a completely ridiculously simple on.

But can someone give me an idea as to what to look for?

So to sum up, the program must do the following:

1. Find users on the network who are connected to the server.

2. Automatically list the users in any order

3. Automatically create a Switch statement to sort the output for the NET SEND prog

4. Allow the user to type a message to be placed onto the output string.

I can do steps 2, 3 and 4. But not step one.

Please help me :-)