Reputation: 299
I need to connect to a computer in LAN and to open CMD in the remote computer and send a command (for example ping www.google.com - but other commands..)
I thought to open a server on the remote computer and a client in my computer and every time to send a command as a string to the server side, and to send that command to the cmd (i know it's easy with c++)
is there another way to do this? is there a way in vb6 to open cmd in a remote computer and to send a command?
the reason i write this here is because the client side will be written in vb6 the client is not written, but i will put it in a program written in vb6
thank you
Upvotes: 1
Views: 2761
Reputation: 4717
You could use Psexec from SysInternals and avoid writing anything for the server side. You could also use telnet/ssh.
Upvotes: 1
Reputation: 55039
You might be able to use WMI. You could copy over a batch file, script or an executable and then use WMI to execute it remotely.
You can use Win32_Process.Create as described here: Creating Processes Remotely
Upvotes: 1