Computing.Net > Forums > Programming > How to do: Net Send 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.

How to do: Net Send Batch File

Reply to Message Icon

Name: kerni
Date: March 3, 2009 at 23:13:26 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Hej ...

i've asked in "networking" about how to loop a "net send"-mesage.

I got the info, that this will work by doing a batch file ... can you help me how to do sort kind of "batch file" ??

Thx in advance
best rgds



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: March 4, 2009 at 07:35:14 Pacific
Reply:

What do you mean by "to loop a Net Send command"?

Which condition breaks the loop? Please explain clearly what you want to achieve. Here you find a lot of batch scripting gurus, but they can't read your mind.


0

Response Number 2
Name: kerni
Date: March 4, 2009 at 10:45:46 Pacific
Reply:

I'm sorry..

so see, i want to send a message with "net send" about 30 times !
(A friend afflict me with sending sort kind of massege and so i have to click 30 times on "ok") --- =(

Now i want to pay back =)
So can you tell me how to send sort kind of message 30+ times??

PS: i've extract from a lot of entries, that this is called loop !
I'm sorry, if this is rubbish

thx in advance


0

Response Number 3
Name: IVO
Date: March 4, 2009 at 12:44:35 Pacific
Reply:

I strongly hope you do not want to use my know-how to hack anybody; keep in mind I can track you and pull you to pay for any harmful design.

So stated, here a sample batch to loop thirty times the message

for /L %%j in (1 1 30) do @Net Send .....

If you want you can just type it at prompt replacing %%j with %j.

Use nuclear fuel for power generation, not to design atomic weapons.


0

Response Number 4
Name: kerni
Date: March 4, 2009 at 14:13:31 Pacific
Reply:

Okee ... this sounds good, but my Problem now .. how du i have to write this ??

for /L %%j in (1 1 30) do @Net Send .....

where do i have to paste the computername etc.
can you write this exactly how i have to paste it, when comp-name is 01234 ??


0

Response Number 5
Name: IVO
Date: March 4, 2009 at 14:48:23 Pacific
Reply:


for /L %%j in (1 1 30) do @Net Send Computer_Name Message

E.G.: Net Send H-BOMB Beware HOT RUN!

You can use ip addres instead of computer name if known and that works on LAN only.


0

Related Posts

See More



Response Number 6
Name: kerni
Date: March 4, 2009 at 23:19:07 Pacific
Reply:

ok i understand !!

So i just have to copy the scrpits and paste the computername/ip-adress!!

Last Question: If my networks compised just one computer (my own) do it work, when i just put * instead of computername and i'll get my own message ??
Because i want to try the scrips etc. !!

Thx in advance


0

Response Number 7
Name: IVO
Date: March 5, 2009 at 02:08:24 Pacific
Reply:

A network is a system connecting two or more nodes, one computer does not make a LAN, it is a standalone workstation. Any way your computer has its own name even if not connected to a LAN. Type Echo.%computername% to display it. To deliver a message to yourself save the following script as myself.bat

for /L %%j in (1 1 30) do @Net Send %ComputerName% Test MSG

then type myself I don't know however if that does work without a LAN connection. Just try.


0

Response Number 8
Name: kerni
Date: March 5, 2009 at 02:44:05 Pacific
Reply:

Okee thx

I have a LAN-Connection at Home ^^

It was just for interest !

Thanks for your advice. thanks a lot


0

Response Number 9
Name: IVO
Date: March 5, 2009 at 07:01:47 Pacific
Reply:

Just for your info, the Net Send command needs the Messenger Service of XP is enabled that is not granted by default. Instead of teaching how to enable it, I suggest you use the following alternate command (mandatory on Vista)

msg /server:ComputerName * Message Text

So if you get an "alias" error message replace Net Send with the above statement that does not require Messenger Service enabled.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to do: Net Send Batch File

How to return value from batch file www.computing.net/answers/programming/how-to-return-value-from-batch-file/17016.html

How to write in a batch file using c#? www.computing.net/answers/programming/how-to-write-in-a-batch-file-using-c/19065.html

Progress bar in batch file www.computing.net/answers/programming/progress-bar-in-batch-file/14919.html