SC start service in folder /Start in:/

耗尽温柔 提交于 2021-02-20 03:51:16

问题


I am solving one problem. I am trying to create a service for a program, but the .exe file has to be run in specific folder /File Properties - Start in/. Is there any way how to add ,,Start in,, to service? All services runs from C:\Windows\System32.. and this one I want to run from C:\WinACD

sc create WinACD binpath= "C:\WinACD\WTELS.EXE Z" start= auto

I have to change working directory: C:\WinACD

Thank you all, Robert


回答1:


In the end I downloaded a program, which works perfectly for my case.

http://nssm.cc/



来源:https://stackoverflow.com/questions/29914673/sc-start-service-in-folder-start-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!