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%"
|