Sent - an utility to send net send messages from command line
Single-line mode:
sent.exe [optional parameters] {[/u:]users | /d:domains | *} ... message
Batch mode:
sent.exe [optional parameters] /f[:messagefile]
[/u:]users
where users - comma separated list of recipients. List of recipients may contain computer network names, user logins, nicknames, which you want to send the message to. If recipient name contains spaces then enclose the parameter in double quotes.
/d:domains
where domains - comma separated list of recipients. List of recipients may contain workgroup or domain names, which you want to send the message to. If recipient name contains spaces then enclose the parameter in double quotes.
*
Sends message to all computers of the workgroup/domain which your computer belongs to.
message
Text of the message to send. If message text contains spaces then enclose the parameter in double quotes.
/f[:messagefile]
where messagefile - name of a text file which contains recipients list and messages text. Runs Sent in batch mode.
Message file format:
recipients1 message1
recipients2 message2
...
recipientsN messageN
If file name is omitted, Sent reads from standart input.
/t:timeout
specifies send timeout value in milliseconds (500-20000).
/p
enables large broadcast message fragmentation.
/l
enables enlarged broadcast messages.
/s{c[omputer] | u[ser]}
specifies which name (computer name or user name) to use as a signature.
/v{s[ilent] | n[ormal] | d[ebug]}
specifies verbosity level.
To send the message "Gentlemen, the meeting will begin at 13:00" to all memebers of computer's domain, type command:
sent * "Gentlemen, the meeting will begin at 13:00"
To send the message "Electricity will be cut off in 5 minutes" to all users in "ukmz" domain and "workgroup" worgroup, type command:
sent /d:ukmz,workgroup "Electricity will be cut off in 5 minutes"
To send the message "Please accord the treaty with Camomile Ltd." to users perm_ai, malcev, Johnson B., type command:
sent "perm_ai, malcev, Johnson B." "Please accord the treaty with Camomile Ltd."
To send the message "To send messages within LAN use the net send command" to user ivanov, type command:
sent /u:ivanov "To send messages within LAN use the net send command"
In order to send this messages using batch mode create text file, named messages.txt, containing next lines:
* Gentlemen, the meeting will begin at 13:00
/d:ukmz,workgroup Electricity will be cut off in 5 minutes
"perm_ai, malcev, Johnson B." Please accord the treaty with Camomile Ltd.
/u:ivanov To send messages within LAN use the net send command
To send messages in messages.txt file type command:
sent /f:messages.txt
or
sent < messages.txt /f