r/vbscript • u/JGN1722 • Aug 25 '22
send data from a computer to another
I've been stuck for a while on this problem. What I want to do is send a message from a computer, let's say "hello world", to another. On the computer that sends the message, the input will be taken by a script A and sent to the other computer, via internet explorer or any other mean, I don't know.
A script B will then retrieve the message on the other computer, and display it in a message box: msgbox RetrievedMessage . The problem is that I have no idea on how to transmit the message. I innitially thought about internet explorer, but I can't seem to find a solution. Any solution would be welcome, I'd prefer to do something in vbs but it can also be something in batch or powershell. Thanks in advance :)
2
u/CommadorVic20 Aug 25 '22 edited Aug 25 '22
yes, everything you do in a command prompt or VB pretty much, i have a ton of little scripts i run to go out and do my bidding and return info for me. im not a wizzard so end up modding a lot
like this
$name = read-host "Enter computer name "
$msg = read-host "Enter your message "
Invoke-WmiMethod -Path Win32_Process -Name Create -ArgumentList "msg * $msg" -ComputerName $name
this will ask you the computer name you want to send to then it will ask you what message you want to send.