Sorry don't know how to do if another app opened the commport.
Cetin
>Thanks for the reply.
>
>My first question was not clear. Here is the problem
>
>The computer is already connected to the internet, i need is a command that will disconnect it.
>
>MS Comm and fputs doesn't work if there is already a connection.
>
>Sincerely,
>
>Alvin Lu
>prosoft@netasia.net
>
>>>Is there a VFp command to hang up a modem?
>>>
>>>TIA
>>Send "ATH" to the port.
>>-If you have opened the port via MScomm control :
>>.Output = "ATH" + Chr(13)
>>-If with a lowlevel function :
>>nRetVal=fputs(handle,"ATH")
>>Cetin