Batch file to upload all files in directory to FTP

后端 未结 2 1520
面向向阳花
面向向阳花 2020-12-06 13:05

I\'m trying to make a bat script to upload all files from a folder to an FTP server.

I followed the below guide and manage to get a single file uploaded but can\'t f

2条回答
  •  情深已故
    2020-12-06 13:32

    You need to use mput command like:

    cd logs
    prompt
    mput *
    

    Without prompt command, you would get asked to confirm each transfer.


    Instead of the prompt command, you can also use the -i switch:

    ftp -i -n -s:ftpcmd.dat MyFTPServer
    

提交回复
热议问题