>>>>>>>>>>>>
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.