Send AT-commands to Modem

I had the fowlowing problem. I want to send AT-command string to a modem. But i lost the little routine to
do that. I looked everywhere but its lost. Maybe can someone help me with this routine. Thanks anyway.
J. van Meer, Email j...@concepts.nl