Kepic
09-28-2001, 07:14 AM
I need as much info as possible on the net send function. I am trying to incorporate a "chat" window on a program i created that allows users to enter and manage their time. What i want to do is hace the ability to send a popup window to a user over a NT network (ex. "Hey, you should print your time sheets) or whatever...Is that possible?? Or should I use another function that net send? Please help...
*If the birds would'nt have wings, they would'nt fly...
Banjo
09-28-2001, 07:30 AM
It's perfectly possible. Type at a command prompt:
NET SEND ?
To get parameter info.
Kepic
09-28-2001, 07:40 AM
Ok, I typed that and get the syntax...but its still blurry
Lets say the domain is JON
the user i wanna send a message to is KEPIC
and his computer name is KEPICPC
CAn you give me the syntax??? Thanks..
NET SEND {name | * | /DOMAIN[:name] | /USERS} message
Thanks again!!
*If the birds would'nt have wings, they would'nt fly...
Banjo
09-28-2001, 07:58 AM
NET SEND KEPIC Hello - Sends to user KEPIC
NET SEND KEPICPC Hello - Sends to machine KEPICPC regardless of user logged in.
NET SEND /DOMAIN Hello - Sends to the domain that the sending machine belongs to
NET SEND /DOMAIN:JON Hello - Sends specifically to domain Jon
NET SEND * Hello - Sends to all users
NET SEND /USERS Hello - Sends message to all users with an active connection to the sending machine.
Banjo
09-28-2001, 08:02 AM
Does anyone know if it is possible to replicate the NET SEND functionality in VB or with API calls?
Kepic
09-28-2001, 08:16 AM
The only one that would work is
NET SEND * Message
But it only sends it to the server....
Is there anything I need to set on the server?
*If the birds would'nt have wings, they would'nt fly...
Banjo
09-28-2001, 08:54 AM
Are you using Microsoft Network Client or Netware?
PrOpHeT
09-28-2001, 09:00 AM
You can use the net send from vb such as
shell("C:\WINNT\SYSTEM32\NET.EXE SEND " & MACHINENAME$ & " " & MESSAGE$),vbHide
It will work the same as from the command prompt, all the net functions will.It works great for mapping drives as well.
"No one can know everything, only so much as to drive us to look for the rest." -PrOpHeT-
Kepic
09-28-2001, 09:32 AM
Small Business Server
*If the birds would'nt have wings, they would'nt fly...