If you know where the .exe is supposed to be you can use:
If FILE( "c:\path\path\lhttseng.exe")
Thisform.cmdMyButton.visible = .F.
Thisform.cmdMyButton.enabled = .F.
EndIf
>Hi,
>I want to disable a command button on a form when a certain program like lhttseng.exe is not installed on the user's PC. Can anyone help how to achive this? Thank you.
>
>Regards
>
>
>Syah N
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.