Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
Is there any expert here know how can I fire/run a program on one PC (PC1) from another PC (PC2) using VB6?
In short, I am trying to run an .exe program from PC1 on PC2. How to do this using VB6?
Thanks in advance!

Hi,
What I want here is, when a certain condition (a running VB6 program) on PC1 is met, it will automatically invoke/fire a program on PC2 WITHOUT i go and manually to do the remote control. you get me??
Anyone please assist!
Thanks in advance!

try pstools.
http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
it's a set of command-line utilities that can perform all sorts of tasks on remote computers.
Geddi

Hi,
The PsTools you stated is useful. But it does not give the results I want. The PsExec can only execute a process remotely on another computer.
But what I want here is, remotely running a program when a certain condition is met in my VB6 program.
For example, when a condition (running on VB6) on my PC1 is met, a NOTEPAD will be poping-up on PC2. But not only execute the process behind.
You get me?? Everyone please assist!
Thanks in advance!

Dear Friend,
Are you using a commmon back end for the vb application running on both computers.Joshua

Hi,
It Doesnt matter. As long as any of you can get the above-mentioned work, i dont mind to use whatever methods or steps.
Any idea?? anybody??
Thanks in advance!

The only real way to do that is to have an application that is already running on the remote system (like a windows service, or if it is not a server os, then a desktop app in the startup folder (of course, then the system would have to be logged into))
There are several ways to tell an app to do something:
1) Place a file in a directory where the app is monitoring
2) Place a value into a database that the app monitors
3) Send a message via winsock to the applicatonUsing the service method, you can invoke that service to make it do what you want as well as using any of the methods above.
Using the application method, you would need to use one of the methods above.
The first method requires that you have access to and permissions to write into the target directory on the target machine.
The second method requires that you have access to the database that the other application also has access to. (not if this is not a SQL Database, then you will need to have permissions to that db file) (if it IS SQL, you will need permissions to the DB)
(You could also create an ASP app on the remote machine to access the db if you do not have direct access to the file system and you would just call up the asp page.)
The winsock method would mean that you would need access to the system (or you could have that remote system connect to a centralized server app if it is behind a firewall or router that prevents incomming connections)
Phew...Well I hope this gets you thinking...
Chi
"They mostly come at night...mostly"

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

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