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"
Windows服务操作指南
本文介绍如何使用sc.exe命令行工具进行Windows服务的基本操作,包括创建、删除、启动和停止服务等。通过简单的命令行指令即可轻松管理Windows服务。
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"
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率
366

被折叠的 条评论
为什么被折叠?