Windows にはサービスという概念があって、UNIX でいうデーモン的なことはこれを使えば実現できる(MSDN、Wikipedia)。サービスにはその停止や再起動などの要求に答える責任があるので、それらに対応していないアプリケーションをそのままサービスとして登録することはできないのだけど、任意のアプリケーションのラッパーとなるサービスアプリケーションが Microsoft によって提供されているので、これを使えば実現できる。 前準備 srvany.exe (今回使用するラッパー)をインストールする。これは "Windows Server 2003 Resource Kit Tools" というのに同梱されている。 Download Windows Server 2003 Resource Kit Tools from Official Microsoft Download Center