سؤال

I have a single program, which is used here essentially as a service.

Currently, I need to start this from a command line, as

program_name.exe arg1 arg2 arg3

And stopping it happens by killing it from the task manager.

I liked it better, if somehow - maybe through a wrapper - I could install this as a service, to be able to manage it by the services.msc. Is it possible? If yes, how?

هل كانت مفيدة؟

المحلول

Maybe, you can use srvany.exe from Microsoft Windows 2003 Resource Kit and SC commands. Here is an example using google drive. http://www.myrtec.com.au/kb/331

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top