Leo
Leo

Reputation: 178

Run a batch file in a windows service

I have a batch file, I want to run it as a windows service without using any additional software.

Upvotes: 1

Views: 12945

Answers (1)

Anders
Anders

Reputation: 101599

You cannot use any random application as a service, it has to be written explicitly for this purpose.

In your case it is better to just create a scheduled task but if you insist on creating a service you can download the 2003 Resource Kit and use srvany.exe. If you don't mind using 3rd-party tools you could try NSSM instead.

Upvotes: 2

Related Questions