Batch file to upload .txt to FTP

后端 未结 4 470
情歌与酒
情歌与酒 2020-12-03 06:15

I have setup a separate FTP account for this.

Here is the info:

FTP Username: ahk@proflightsimulatoreview.com
FTP Server: ftp.proflightsimulatorevie         


        
4条回答
  •  余生分开走
    2020-12-03 06:25

    The easy way to upload to server is make a script file :
    Code :

    (
    echo USERNAME
    echo PASSWORD
    echo asc
    echo put C:\Users\Kyle\Desktop\ftptest\thetest.txt
    echo quit
    )>temp.txt
    ftp SERVER_DOAMIN -s:temp.txt
    del temp.txt /q >nul
    


    So, the USERNAME is a username, and PASSWORD is a password, SERVER_DOMAIN is a server domain (not ftp:// at the top)

提交回复
热议问题