1、創建:sc.exe create "Service Name" binPath= "C:\Your Program.exe"
//注:binPath=后的空格,binPath指定的是.exe文件的絕對路徑。
2、刪除:sc.exe delete "Service Name"
3、啟動:sc.exe start "Service Name"
4、停止:sc.exe stop "Service Name"
————————————————
版權聲明:本文為CSDN博主「iteye_13776」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/iteye_13776/article/details/82537277