Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run external program within VFP program?
Message
De
09/01/2001 19:46:21
 
 
À
08/01/2001 22:00:51
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459680
Message ID:
00461474
Vues:
15
>>>>>>>>>>>>
By the advice from you, I amend my program segments and it works quite smooth at design time. When I try to compile the project which include such a backup/restore routone. The program report an error of ole-error.

How and where can I installed the WSH, and can the EXE file compiled from project be distributed, no matter the client have WSH installed or not.
>>>>>>>>>>>>

WSH comes with Win98, WinME and Win2000. It is a free download for Win95 and WinNT.

Assuming that the registry class that comes with the FFC is on your Fox search path, you can check for the existence of WSH:
SET CLASSLIB TO REGISTRY.VCX
oReg = CREATEOBJECT("Registry")
? oReg.IsKey("VBScript.RegExp")
You should check the excellent series of articles in VFUG about WSH, by George tasker and Ed Rauh, starting with the September 2000 issue. VFUG is at http://www.vfug.org and it's free.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform