View Full Version : NET SEND in C++
Mhtml
06-15-2003, 05:27 AM
I'm just starting to mess around with C++.
Anyways I'm trying to make this little app to annoy my mates on the school network by continously sending net send messages :).
It's just a little project. Anyways the main aim of this project is to teach myself c++ and I'm sure by the time I'm finished I'll have al sorts of non related garbage in the program to do all sorts of things.
Now, using system() I can net send but my problem is I don't know how to add a variable into the string.
I mean to do something like this:
system("NET SEND LOCALHOST message");
Where message is a string variable.
XtrmelyCanadian
06-16-2003, 04:03 PM
If im understanding you right.....
string message = "whatever";
system("NET SEND LOCALHOST %s" + message);
Mhtml
06-16-2003, 04:47 PM
Hmm... I still can't get it working. I'll post the code up tommorow.
fyreadmin123
11-08-2007, 10:38 PM
Hi
I dunno if you wan't this, but you can do it in a BAT file:
@echo off
:netsend
net send DOMAINHERE MESSAGEHERE
Pause
goto netsend
Note: suggested message for looping: This is a message. This is a message. THIS IS; MESSAGE ATTACK!
Note: Delete "Pause" if you want to loop it. CLose the cmd window to end it.
Hope it works, Mark.
fyreadmin123
11-08-2007, 10:53 PM
ooh and another tip - if you want to send it to EVERY computer on the server, type
net send SEVERHERE * messagehere
lol try not to get caught!
oracleguy
11-09-2007, 08:23 AM
ooh and another tip - if you want to send it to EVERY computer on the server, type
net send SEVERHERE * messagehere
lol try not to get caught!
Sorry but I think this issue is a little past. The thread is over 4 years old.
fyreadmin123
11-09-2007, 06:21 PM
Sorry but I think this issue is a little past. The thread is over 4 years old.
Jesus. I didn't realize this topic was over 4 years old. It seems to me though that by criticizing a newcomer here, that was just trying to help somebody out, it seems your about 4, so just don't alright? >_>
oracleguy
11-09-2007, 07:17 PM
Jesus. I didn't realize this topic was over 4 years old. It seems to me though that by criticizing a newcomer here, that was just trying to help somebody out, it seems your about 4, so just don't alright? >_>
Uh, that wasn't a criticism. I was just pointing the age of the thread out. If I had been criticizing you I wouldn't of said sorry.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.