Computing.Net > Forums > Programming > Fire a program on another PC

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Fire a program on another PC

Reply to Message Icon

Name: sthchris
Date: January 12, 2005 at 00:38:27 Pacific
OS: Win 2000
CPU/Ram: P4/256MB
Comment:

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!



Sponsored Link
Ads by Google

Response Number 1
Name: BlueRaja
Date: January 12, 2005 at 06:49:05 Pacific
Reply:

What are you trying to do?
I'd just use remote desktop...

BlueRaja.admin@gmail.com


0

Response Number 2
Name: sthchris
Date: January 12, 2005 at 22:21:19 Pacific
Reply:

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!


0

Response Number 3
Name: geddi
Date: January 13, 2005 at 13:49:44 Pacific
Reply:

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


0

Response Number 4
Name: sthchris
Date: January 13, 2005 at 17:31:52 Pacific
Reply:

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!


0

Response Number 5
Name: henry_joshua
Date: January 14, 2005 at 22:12:15 Pacific
Reply:

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

Joshua


0

Related Posts

See More



Response Number 6
Name: sthchris
Date: January 16, 2005 at 22:24:52 Pacific
Reply:

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!



0

Response Number 7
Name: Chi Happens
Date: January 17, 2005 at 10:16:25 Pacific
Reply:

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 applicaton

Using 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"


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Fire a program on another PC

VB6 - sending message to another PC www.computing.net/answers/programming/vb6-sending-message-to-another-pc/11938.html

Best way to link up! www.computing.net/answers/programming/best-way-to-link-up/11603.html

Auto run exe slow www.computing.net/answers/programming/auto-run-exe-slow/14535.html