lnHandle = FCreate("\\"+m.tcTarget+"\MailSlot\Messngr")The variable tcTarget had blanks at right, when I alltrimed them it worked ok. What puzzles me is when I was sending from my PC it worked, from many other users it didn't. The only explanation I found (guessed) is that I'm running Win XP and the other Win2K. Who knows...
>*======================================================== >* Send a message to a computer. Same as NET SEND. >*======================================================== >Procedure SendMsg >LParameter tcTarget, tcSender, tcReceipient, tcMessage > > Local lnHandle, llOK > lnHandle = FCreate("\\"+m.tcTarget+"\MailSlot\Messngr") > If m.lnHandle == -1 > llOK = .F. > Else > FWrite( m.lnHandle, ; > m.tcSender + Chr(0) + ; > m.tcReceipient + Chr(0) + ; > m.tcMessage+Chr(0) ; > ) > FClose( m.lnHandle ) > llOK = .T. > Endif > >Return m.llOK >>