大众世界 world of demotic + 社区新动力

 找回密码
 注册会员
搜索
查看: 125|回复: 0

[操作系统] 在 Windows 系统中删除「服务」的 4 种方法

[复制链接]
发表于 2023-9-22 09:33:32 | 显示全部楼层 |阅读模式
https://blog.csdn.net/willingtolove/article/details/103264452
https://blog.csdn.net/ggjklncffd/article/details/131031253

!1安装服务.bat
[Shell] 纯文本查看 复制代码
chcp 65001


@echo off
set SERVICE_NAME=Wing FTP Server
set DISPLAY_NAME=Wing FTP Server
set DESCRIPTION=This is my Wing FTP Server.
set EXECUTABLE_PATH=\"d:\Program Files\Wing FTP Server\x64\WFTPServer.exe\" service
 
sc create "%SERVICE_NAME%" binPath= "%EXECUTABLE_PATH%" start= auto displayname= "%DISPLAY_NAME%" obj= "LocalSystem" depend= ""
sc description "%SERVICE_NAME%" "%DESCRIPTION%"



!2删除服务.bat
[Shell] 纯文本查看 复制代码
chcp 65001

@echo off
set SERVICE_NAME=Wing FTP Server
 
sc.exe delete "%SERVICE_NAME%"

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Archiver|手机版|小黑屋|Wod Inc. ( 蜀ICP备20000008号-8

GMT+8, 2024-4-28 03:44 , Processed in 0.124255 second(s), 30 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表