Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run EXE on LAN
Message
De
23/10/2012 00:25:31
 
 
À
22/10/2012 00:31:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01555410
Message ID:
01555503
Vues:
63
>>>Dear Expert
>>>
>>> On same Workgroup,
>>>
>>> PC1 has following IP
>>> 192.168.0.1
>>>
>>> PC2 has following IP
>>> 192.168.0.2
>>>
>>> At PC1 (192.168.0.1),there is an exe exists on this location
>>>
>>> D:\ACCOUNTS\TEST.EXE
>>>
>>> While using PC2 (192.168.0.2),I want to run above exe at PC1.
>>>
>>> So I am using this command
>>>
>>>
>>>
>>> RUN /N1 "\\192.168.0.1\D\ACCOUNTS\TEST.EXE"
>>>
>>>(D\ACCOUNTS is shared folder)
>>>
>>>
>>> But it syas Run command faild
>>
>>If you open Windows Explorer on PC2, are you able to navigate to the folder on PC1 that contains TEST.EXE and double-click on it to run it?
>
>
>Sir as I have told earlier that
>
> While using PC2 (192.168.0.2),I want to run above exe at PC1.
>
>I want to run text.exe on pc1 while sitting on pc2.
>
>May it is called run exe on remote computer.

From PC2, you cannot directly instruct PC1 to run TEST.EXE on itself (on PC1).

If that's what you want to do, you have some options:

1. Use Remote Desktop - from PC2, log on to PC1 and start TEST.EXE
2. Investigate Remote Procedure Calls (RPC) and/or Distributed COM (DCOM)
3. Create a small EXE on PC1, say Watchdog.EXE that runs all the time. It looks for the presence of a file in a given folder, say C:\Trigger.txt. If that file exists, it runs TEST.EXE. You could then copy a file Trigger.txt from PC2 to C:\ on PC1, which would cause TEST.EXE to start to run on PC1.

The code samples you show above would attempt to:

- copy TEST.EXE from PC1 into PC2's RAM memory
- execute it on PC2
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform