Conor I also note that in the source for Comserv.Pas the start mode is determined by looking at the command line parameters - for automation the switch -EMBEDDED or -AUTOMATION is present. So I was doing the right thing but the hard way !
Regards Paul Lowman Lowman Consulting Ltd. [EMAIL PROTECTED] --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/