Jump to content

Send a message over the network to a whole subnet


Recommended Posts

Guest frearihe@gmail.com
Posted

Hi Everybody I need to send a message over the network, like "net

send" command does, but i need to send this message just through a

whole subnet. Is there a special command in Windows that help me to do

this task

 

THS

 

BLESS

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Meinolf Weber
Posted

Re: Send a message over the network to a whole subnet

 

Hello frearihe@gmail.com,

 

Found this in another article, try it out:

 

Create a file with the IP addresses of the subnet into a text file called

subnet.txt - it should contain each subnet address within the subnet:

 

192.168.0.1

192.168.0.2

 

and so on....

 

Then use a script similar to the one below to send the message:

 

;Script title - notify.cmd

;Function - net send to subnet

;

;parse through the IP addresses in the text file and send the message to each

for /f %%i in (subnet.txt) do net send %%i "The server is going down"

;end of script

 

 

 

 

 

Best regards

 

Meinolf Weber

Disclaimer: This posting is provided "AS IS" with no warranties, and confers

no rights.

** Please do NOT email, only reply to Newsgroups

** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm

> Hi Everybody I need to send a message over the network, like "net

> send" command does, but i need to send this message just through a

> whole subnet. Is there a special command in Windows that help me to do

> this task

>

> THS

>

> BLESS

>


×
×
  • Create New...