admin管理员组

文章数量:1299995

I have a UI application that has a button that will install a Windows service. The button will start a Process that runs sc.exe.

My question is simple... should I expect that sc.exe is going to be in the path? Or do I need to specify the location where sc.exe is located? On any machine I can access, I can access sc.exe from anywhere so I know it's in the path. But what is the best practice... should I assume it is available? Or should I specify a path?

本文标签: cInstalling a windows service via scexeshould I expect it to be in the pathStack Overflow