add 发表于 2023-9-22 09:33:32

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

https://blog.csdn.net/willingtolove/article/details/103264452
https://blog.csdn.net/ggjklncffd/article/details/131031253

!1安装服务.batchcp 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删除服务.batchcp 65001

@echo off
set SERVICE_NAME=Wing FTP Server

sc.exe delete "%SERVICE_NAME%"
页: [1]
查看完整版本: 在 Windows 系统中删除「服务」的 4 种方法