在命令行中操作服务时,时常用到sc或者是net xxx,这2者有着一定的区别,以下为汇总的情况
1 从使用对象来区分
https://blog.csdn.net/xhw035/article/details/50976220
1、net用于打开没有被禁用的服务
2、用sc可打开被禁用的服务
2 从操作结果来看
https://superuser.com/questions/315166/net-start-service-and-sc-start-what-is-the-difference
其中 Mattias Andersson 的答案比较认可,是关于同步/异步的使用说明
"net" is synchronous —— 同步
"sc" is asynchronous —— 异步
3 则是从支持的xi系统而言
https://superuser.com/questions/315166/net-start-service-and-sc-start-what-is-the-difference
net is older – from the days of MS-DOS and OS/2, in fact.
sc only appeared with Windows NT (not sure which version).