Batch file uploading entire folder to FTP

2019-05-28 20:57发布

问题:

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:

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