Wednesday, July 20, 2011

Simple FTP using Batch File

For FTP, I have used two batch files.
File1- example.bat

Create example.bat file with the following contents:

open <ip address>
lcd "<path of local folder where the file is present>"
cd /
prompt off
put filename.extension

File2- Sendexample.bat

Create Sendexample.bat file with the following contents:

ftp -s:example.bat

Thats It...Enjoy

Also if you need to ftp multiple files use "mput" option instead of "put".

No comments:

Post a Comment