Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: net send, batch file and my question!!!  (Read 3084 times)

0 Members and 1 Guest are viewing this topic.

eddies1j2

  • Guest
net send, batch file and my question!!!
« on: January 30, 2006, 02:17:33 PM »
whats up everyone!

now, everyone knows the net send command? rite and some know there is a batch file that goes like this:

@echo off
:A
Cls
echo MESSENGER
set /p a=User:
set /p b=Message:
net send %a% %b%
Pause
Goto A

and when you run it, it asks for the user, and the messege but i want another type of batch file

instead of a net send batch file i want a "for /L %i IN (1,1,150) DO net send IP_ADDRESS_OR_NETWORK_NAME %i" batch file


"for /L %i IN (1,1,150) DO net send [IP_ADDRESS_OR_NETWORK_NAME] %i [message]" is a command that you use to send the number of messeges alot of time (in this case 150) but i need someone to do a batch file that asks you for the user to send it to and the messege but i want it to ask the number of times...

i did one but did not work... and here is how it looks

@echo off
:A
Cls
echo MESSENGER
set /p a=User:
set /p b=Message:
set /p c=Times:
for /L %i IN (1,1,%c%) DO net send %a% %i %b%
Pause
Goto A

thanks for your help and time

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: net send, batch file and my question!!!
« Reply #1 on: January 30, 2006, 02:47:46 PM »
It's just a question of playing the percentages.

Code: [Select]
@echo off  
echo MESSENGER  
set /p a=User:  
set /p b=Message:  
set /p c=Times:  
for /L %%i IN (1,1,%c%) DO net send %a% %%i %b%  

Why do you want to send multiple messages to the same user? Don't answer that, I don't really want to know.

Good luck. 8-)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

eddies1j2

  • Guest
Re: net send, batch file and my question!!!
« Reply #2 on: January 30, 2006, 02:53:47 PM »
thanks,

u da best