Batch file to upload .txt to FTP

后端 未结 4 463
情歌与酒
情歌与酒 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:41

    I did it like that:

    1st bat:

    startupload.bat
    ftp -i -s:upload.bat
    

    2nd bat: upload.bat :

    open ftp.yourserver.com
    username 
    password 
    cd public_html 
    cd Ftp 
    binary
    put C:\Users\Desktop\something.txt
    bye
    

    you run it by opening startupload.bat (if that doesn't work, open cmd.exe and move startupload.bat in it and hit Enter. It will show you where is problem)

提交回复
热议问题