Hi Nigel,
Thank you for your quick response. I have my software on a users XP computer to open a PDF file but it fails even though he has wscript.exe in the windows\system32. I am now trying to check if his version of WSH is broken.
Regards...Rex
>Rex,
>
>lcError = On("ERROR")
>llError = .F.
>On Error llError = .T.
>loWSH = CreateObject("WSH.Object") && I forget the library ref !!!
>On Error &lcOnError.
>If llError = .T. Then
> Error occurred
>EndIf
>
>
>>Hi all,
>>
>>Is there a simple way of determining if Windows Host Scripting is installed on a computer before it is called?
>>
>>Any assistance would be appreciated.
>>
>>Rex
Rex Toomey
ISD Port Macquarie NSW
Australia
'Inside every older person is a younger person wondering what happened.'