Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在批处理文件中创建一个验证函数来检查 FTP 服务器的可用性,因为我正在执行put命令然后删除我本地存储的文件。问题是如果我不检查 FTP 服务器是否启动,文件不会put发送到服务器而是本地删除。
put
简单地使用“ping”而不是使用一些条件和“$”怎么样?> 什么时候?返回“2”(我认为)ftp 服务器已关闭