如何使用命令提示符或批处理禁用FTP服务?

问题描述 投票:0回答:1

我试图弄清楚如何使用命令提示符禁用FTP服务。我已经知道打开或关闭Windows功能的方法,但是我想在正在编写的脚本中使用命令提示符。

batch-file command-line scripting windows-10 command-prompt
1个回答
0
投票
@echo off net stop msftpsvc goto :eof

并且这个会永久停止它

@echo off
sc config msftpsvc start= disabled
goto :eof
© www.soinside.com 2019 - 2024. All rights reserved.