Take the 2-minute tour ×

how to setup a .bat file as windows service using command?

share|improve this question

1 Answer 1

You can't.

Batch files can't be used as windows services.

share|improve this answer
no i want to use bat file in window service –  sam Dec 14 '10 at 10:47
@sam - that's not what you asked. Can you please edit your question and clarify exactly what you want to do? And please add details like what language you are writing the windows service in. –  Oded Dec 14 '10 at 10:48
he's probably using python. –  Sasa Ninkovic Jan 20 at 0:15

Your Answer


