使用Windows cmd.exe从FTP服务器复制到网络服务器
我想制作一个批处理文件,将文件从FTP服务器(外部)复制到网络驱动器 我不确定该使用哪个命令 这将适用于Windows 10上的批处理文件 非常感谢。使用: 其中,使用Windows cmd.exe从FTP服务器复制到网络服务器,windows,batch-file,cmd,ftp,Windows,Batch File,Cmd,Ftp,我想制作一个批处理文件,将文件从FTP服务器(外部)复制到网络驱动器 我不确定该使用哪个命令 这将适用于Windows 10上的批处理文件 非常感谢。使用: 其中,download.txt可能如下所示: open ftp.example.com username password get /remote/path/file.txt \\localserver\share\path\file.txt bye 虽然Windowsftp.exe不支持被动模式的ftp,但由于无处不在的防火墙和NAT
download.txt
可能如下所示:
open ftp.example.com
username
password
get /remote/path/file.txt \\localserver\share\path\file.txt
bye
虽然Windows
ftp.exe
不支持被动模式的ftp,但由于无处不在的防火墙和NAT,它在当今的许多场景中毫无用处
如果您遇到此问题,则必须使用第三方FTP客户端(请参阅)或比批处理文件(如PowerShell)更强大的脚本语言。如何使用
FTP
命令?
open ftp.example.com
username
password
get /remote/path/file.txt \\localserver\share\path\file.txt
bye