window ftp自动上传命令

1批处理 ftpcmd.bat

@echo off
ftp -s:D:\ftp\ftp.txt

2.ftp.txt内容

open 192.168.1.166
ftp-user
passwd
prompt off
lcd D:\ftp
cd /home/myftp
mput *
prompt on
bye
quit

Leave a Reply