Categories
Technology - Tips

Upload Files To An FTP Via a Batch Script

Upload Files To An FTP Via a Batch Script

In this tutorial i will explain you how to Upload Files To An FTP Via a Batch Script.In this demonstration i am using .txt files to upload to FTP through a Batch file.

First of all create a folder and on that create some dummy .txt files.Now move to batch file.

Create a new .txt file and paste the following code on to that.

@ftp -i -s:”%~f0″&GOTO:EOF
open 172.00.00.00    —–Server IP
SAP          —-Username
l$334      —-Password
put “*.txt”
bye

Now save this fila as a .bat file and this will connect to our FTP Server and then upload all the .txt files to FTP Server.

Enjoy…..

One reply on “Upload Files To An FTP Via a Batch Script”

Comments are closed.