1.

Solve : net send in a batch file??

Answer»

Hey all!

I am trying to make a batch file with a net send command in it, to make a little fun with my brother and friends.
But i have no idea on how to make the dos prompt write the line.

This is what i had in mind for them
"START cmd.exe
for /L %i IN (1,1,999) DO net send * YOU JUST GOT OWNED!"

Thank you for you help!set CMDLINE=%*
brings what you type in dos prompt in the var "cmdline"

hope it helps
uliDepending on what OS you are using, you shouldn't even have to start cmd.exe. Just try...
Code: [SELECT]net send computerNameorUser "message"where computerNameorUser is EITHER the COMPUTER name or the user of that computer.

Maybe that is what you are looking for.Thank you Uli, that is exactly what i needed
i cant get it to work tho, can you tell me what to excact write in the .bat file to make it work? (sorry IM a NOOB at this )Not hijacking, adding to:

How can you input a variable into the message?
like ask the user a question, set it as a variable, and set it and some other prewritten text into the message?Hey HDL_CinC_Dragon, you should start a new thread that way, you do not get confused and we do not get confused.HDL_CinC_Dragon,

Environment variables are always resolved in the shell program:

Code: [Select]set /p name=Enter your name:
echo %name% is a member of CH

Xsix,

Open up notepad, enter the line:

Code: [Select]for /L %i IN (1,1,999) DO net send * "YOU JUST GOT OWNED!"

Save your file with a bat extension, and either run from the command prompt or find your file in Windows Explorer and double click.

It's bad enough we have to worry about viruses, trojans and other crap, now we have to watch out from our own relatives. :-?Quote

Hey HDL_CinC_Dragon, you should start a new thread that way, you do not get confused and we do not get confused.

Sorry. Next time ill just start a new topic.

Quote
HDL_CinC_Dragon,

Environment variables are always resolved in the shell program:

Code: [Select]set /p name=Enter your name:
echo %name% is a member of CH

Thanks Quote
Xsix,

Open up notepad, enter the line:

Code: [Select]for /L %i IN (1,1,999) DO net send * "YOU JUST GOT OWNED!"

Save your file with a bat extension, and either run from the command prompt or find your file in Windows Explorer and double click.

It's bad enough we have to worry about viruses, trojans and other crap, now we have to watch out from our own relatives. :-?

Dident work? Can it run in windows xp? i tryed both methods you suggested;
Double Click: Opens up the windows and closes down so fast i almost cant even see it.
Run from the cmd: It displays the line in the cmd, but it dosent run it/use it. :/My error From a batch file, you need double percent symbols:

for /L %%i IN (1,1,999) DO net send * "YOU JUST GOT OWNED!"

To run from the command prompt, use single percent symbols:

for /L %i IN (1,1,999) DO net send * "YOU JUST GOT OWNED!"

8-)

Next time please try for something constructive.working
Thank you very much Sidewinder rofl i just tested Code: [Select]for /L %%i IN (1,1,999) DO net send * "Testing" on my home computer and it sent the message "Testing" to every computer i dont even know how many times... but I can tell you it sent 15m/s (messages per second) for a pretty interesting amount of time lol. Luckily only mine and my moms computer were online now i gotta close em all.... one at a time... :sigh:


Discussion

No Comment Found