Batch file uploading entire folder to FTP

17,531

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
Share:
17,531
Luai Kalkatawi
Author by

Luai Kalkatawi

Learning Swift :)

Updated on June 17, 2022

Comments

  • Luai Kalkatawi
    Luai Kalkatawi almost 2 years

    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.