1.

Solve : User Input For net send?

Answer»

Hey there im fairly new to batch programming.
Is there a way to GET a USERS INPUT and then use it in a command for net sending.sorta like this:
echo User name/IP?
(Input of destination)
echo Message?
(input of message)
net send (user destination) "(user message)"

this would be so the user of the batch could choose who to send it to and what message to send.
I think this could be done with variables and such but im not sure how.This would be for WinXP.
any help at all would be very much appreciated.

cheers,KRThe mechanics are fairly straightforward:

Code: [Select]
@echo off
set /p ip=User name/IP?
set /p msg=Message?
net send %ip% "%msg%"


I'm not sure that is the proper syntax for the net send command, but I'll leave you to work that out.

Good luck.



Discussion

No Comment Found