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
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...
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.
Summary: i have this dos command which will automatically scan ips in the given range . FOR /L %i IN (42,1,46) DO ping -a 192.168.1.%i it runs ok from command prompt,but when i try to run it from a batch file...
Summary: How do I input a value using a batch file. For example, In perl i would say $input = ; similairly in a unix shell scrips I will say read input; MY QUESTION IS HOW TO ACHIEVE THIS IN MS-DOS BATCH FILE?...
Summary: Has anyone wirtten a batch file or know of a program that I can use with win2k to close a program that is running. I have software running on my machine that needs to be closed before my backup runs. ...