VB6: I suggest the NT Service Toolkit from Desaware. VB.NET: there are several examples in the MSDN library, and perhaps here on CP as well. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.