>>>BTW, even if the service is not running, the program returns .t.
>>
>>It did send message, didn't it? How would it know if service is running on the destination computer or not?
>
>Right. Is there a way to determine it? Or it's easy to use other suggested ideas?
Nadya, you could use WMI to determine if the service is running in the other computer, but you will need some rights on the remote computer, the easiest way, I think, would be to impersonate a network admin, but I'll bet nobody will be happy with this, in particular for something not that usefull <g>
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges