I can't upload a multiple files to FTP by batch script

后端 未结 3 735
傲寒
傲寒 2020-12-20 07:54

I can\'t succeed to upload a multiple files to some FTP by batch file I made.

Also, I want to upload all files from this local directory.

The code:

3条回答
  •  眼角桃花
    2020-12-20 08:18

    Use the prompt command to turn off transfer confirmation prompts:

    Toggles prompt mode on and off.

    Without it, tje ftp uses the following commands in the script (the close and the quit in your case) as answers. As they are not y, the transfer is skipped.


    Another option with the same effect is using the -i switch on the ftp command-line:

    -i : Disables interactive prompting during multiple file transfers.

提交回复
热议问题