Hello Rajeshree,
Please note that you cannot achieve the desired behavior, to have a batch file to run as a service. For example, you can have a service as an .EXE written in C++ or written in C#.
Please take a look on the
Developing Windows Service Application article which may be useful to you.
If you have other questions, please let us know.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging