>>>What is the preferred method of running another program and waiting for it to complete. TIA
>>
>>Easiest would be the WScript.Shell's Run method. It requires that the Windows Script Host be installed
oShell = CREATEOBJECT("WScript.Shell")
>>* lcfile is either the application to run, or a
>>* file type associated with an application
>>oShell.Run(lcfile, 1, .T.)
>
>George,
>
>Along this line... How could an automatic check be done as to what WSH the client has installed and then can it be installed for them during the deployment of an app?
>
Renoir,
Check the HKEY_CLASSES_ROOT hive in the registry for the existence of the VBScript.RegExp entry (Regular Expression parser). This will tell you two things, actually. If it isn't there, WSH 2.0 isn't installed. WSH 1.0 didn't have this object.
Don't get confusion with the version numbers, BTW. The Windows Script Host is at version 2.x. Many of the components, however, are at version 5.6 and you'll see this number referred to in most cases.
George
Ubi caritas et amor, deus ibi est