Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi all,
Could someone please make a batch file which sends a message to a pc in my network using the "net send" command ?
it should ask to what pc (1 2 or 3)
and what the message is.some thing like:
net send /domain:pc-1 testingwhere "pc-1" was input 1 and "testing" input 2
"net send: runs from the command prompt.
if someone could ??
may thanksBernard

Hey Bernard,
Here:
@ECHO OFF
cls
CHOICE/C:123 What Computer do you want to send %1 to?
IF ERRORLEVEL 3 GOTO comp3
IF ERRORLEVEL 2 GOTO comp2
IF ERRORLEVEL 1 GOTO comp1cls
:comp1
copy %1 C:\windows\desktop\comp1\%1
GOTO end1:comp2
copy %1 C:\windows\desktop\comp2\%1
GOTO end2:comp3
copy %1 C:\windows\desktop\comp3\%1
GOTO end3cls
:end1
ECHO You have successfully sent %1 to Computer #1
GOTO final_end:end2
ECHO You have successfully sent %1 to Computer #2
GOTO final_end:end3
ECHO You have successfully sent %1 to computer #3
GOTO final_end:final_end
pause
Well that is the Whole program, to send the file go to DOS and go to the folder the .bat is located and start it by doing something like this(suppose we name it send.bat):send C:\windows\Desktop\test.txt
then this would pop up with the program asking you which computer you would like to send the test.txt file to. I dont know exactly where you want them sent and all that so just E-mail me if you need help editing this.
NOTE: Where ever you are sending it the folder you are using the copy command to copy the file there the directory must be made I am not sure why I tried to get it to make a folder and then copy it if there was no folder there but didn't have the time.
-Jason

![]() |
![]() |
![]() |

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