That isn't what the poster wanted though. I think he wanted an alternative to $isfile and $exists. He gave the example of 'notepad'. If notepad doesn't exist on the users system they will get an error message:

* /run: unable to open 'notepad'

I believe this suggestion is aimed at avoiding error messages like that.

Ofcourse there is no API way of doing this. However, with a little thought, It is possible that mIRC could check the registry and see if 'notepad' is registered, in the case of no filepath being specified. And then return $true or $false.

It's also possible that mIRC could perform the operation of $isfile internally and return $true or $false, when a filepath is specified.

There may also be a way to determine if a user has access to that file under NT, and return $true or $false.

--
A more general method of handling all mIRC error messages would be preferable to me though (ON MERROR).