FTP commands in a batch script does not working properly

前端 未结 2 1285
孤独总比滥情好
孤独总比滥情好 2020-12-20 01:23

I\'ve made a simple FTP upload script that should upload multiple files from a Windows 2008 Server to the FTP location. I\'ve tried this manually by executing every command

2条回答
  •  粉色の甜心
    2020-12-20 01:59

    Place your script in a text file on your desktop called ftpscript.txt

    Create a batch file called getftp.bat and inside it have this - then you can click the bat file.

    @echo off
    ftp -i -s:"%userprofile%\desktop\ftpscript.txt"
    pause
    

提交回复
热议问题