Computing.Net > Forums > Windows 2000 > MS Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MS Batch File

Reply to Message Icon

Name: richard
Date: December 1, 2003 at 16:43:34 Pacific
OS: 2000/XP
CPU/Ram: 1.2/512
Comment:

I am trying to write a batch file that I can net send the same message to certain Win2000/XP IP address on my network. Where I only have to add the messge on one line and not all lines. Is there a way to do this or should I find a 3rd party GUI software to do this?
If so do you know of any free ones?
Here is is my test message batch file.

net send 10.192.100.217 This is an systems test message...
net send 10.192.101.79 This is an systems test message...



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: December 2, 2003 at 07:24:43 Pacific
Reply:

A straightforward solution is

Set MyMsg=This is my System Test message

Set NetMsg=%MyMsg%
Net Send 10.192.100.217 %NetMsg%
......
Set NetMsg=
Net Send ........... %NetMsg%
........
Set NetMsg=%MyMsg%
Net Send 10.192.101.79 %NetMsg%

and so on, setting NetMsg before the Net Send command to the desidered text or clearing it or omitting at all.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: MS Batch File

ms dos batch file error in windows www.computing.net/answers/windows-2000/ms-dos-batch-file-error-in-windows-/63878.html

Reading input from a batch file www.computing.net/answers/windows-2000/reading-input-from-a-batch-file/51608.html

Batch file to close program www.computing.net/answers/windows-2000/batch-file-to-close-program/32808.html