Hi Paul,
Use the MSComm ActiveX control. Specify the COM port and its settings. Send the command "ATZ" + chr(13). You should wait up to 2 seconds for a response (which should be "OK")
You can use this control to poll a number of COM ports to find out which, if any, have a modem attached (and switched on).
HTH
Liam
>Hi,
>
>Has anyone got any idea how I can test if a modem is plugged into a COM port and is turned on?
>
>Regards
>
>Paul Robinshaw
Liam O'Hagan
MCP VFP Desktop Apps