Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run external program within VFP program?
Message
From
09/01/2001 19:46:21
 
 
To
08/01/2001 22:00:51
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00459680
Message ID:
00461474
Views:
16
>>>>>>>>>>>>
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform