Thread: Finding users on a network and messaging them.

  1. #1
    Registered User
    Join Date
    Nov 2002

    Finding users on a network and messaging them.

    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 :-)

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    I'm not eaxactly sure why this program, but if it is a UNIX style network why not use
    who -q  //for the users
    talk //or
    write //for messaging

    some entropy with that sink?

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    incase you didn't know, net send allows you to use IP address in place on Computer Name, i.e. "net send hello".
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  4. #4
    Registered User
    Join Date
    Nov 2002
    These don't do what I want. It is really just to test the network capabilities, as I can recognise a user name, as on the network it is done with the Date of Birth, but I only know what their names are. So thats why I need the user find. And net user, doesn't do it!

    Also, am on windows 2000

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Messaging program?
    By CrackDown in forum Linux Programming
    Replies: 2
    Last Post: 12-02-2003, 04:04 AM
  2. network messaging
    By iain in forum Windows Programming
    Replies: 1
    Last Post: 02-05-2003, 07:56 PM