Batch file uploading entire folder to FTP

2019-05-28 21:04发布

I am trying to upload entire a folder to ftp but it just uploads one file, what could be the problem?

Open Run window → cmdftp -s:C:\ftpfile.bat

This is my batch code code:

open FTP address
USERNAME
PASSWORD
bin
mput C:\user\*
bye

Thanks from now.

1条回答
干净又极端
2楼-- · 2019-05-28 21:55

Have you tried to use prompt before mput in order to deactivate interactive mode?

open FTP address
USERNAME
PASSWORD
prompt
bin
mput C:\user\*
bye
查看更多
登录 后发表回答