Net Send

  • Thread starter Thread starter Saine
  • Start date Start date
S

Saine

Friends,

Is it possible to send a 1 NET SEND message to multiple
computer in network in one time?, instead of send the
same message one by one, inside of out network we have
Windows 2000 Professional.

Thanks and Regards,

Saine
 
Saine said:
Friends,

Is it possible to send a 1 NET SEND message to multiple
computer in network in one time?, instead of send the
same message one by one, inside of out network we have
Windows 2000 Professional.

Thanks and Regards,

Saine

Only with a batch file:

@echo off
for /F %%a in (c:\Computers.txt) do net send %%a "Hello, world!"
 
You can use a netsend program. I downloaded one but I don't know where it
came from. it works well and allos you to put create recipient lists and
everything. I can email it to you if you wish, its only 45 KB (the zip file)


guillermo
 
Pegasus (MVP) said:
Only with a batch file:

@echo off
for /F %%a in (c:\Computers.txt) do net send %%a "Hello, world!"

VBScript is better. Then you can get the script running "NET VIEW" to get
the whole list of computers. Then you cal "NET SEND" for each item in the
list, using the item as parameter.
 
Geir said:
VBScript is better. Then you can get the script running "NET VIEW" to get
the whole list of computers. Then you cal "NET SEND" for each item in the
list, using the item as parameter.

VBScript is not needed; you can also do the same thing in a batch file
or at the CMD prompt :-)


for /f "tokens=1 delims=\ " %a in ('net view ^| find "\\"') do @net send %a text of message goes here....

The preceding is all one line. To use in a batch file, double the percent signs.
 
Back
Top