Luai Kalkatawi
Luai Kalkatawi

Reputation: 1492

Batch file uploading entire folder to FTP

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.

Upvotes: 2

Views: 17645

Answers (1)

marapet
marapet

Reputation: 56566

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

Upvotes: 1

Related Questions