Sharing Knowledge | System Admin Articles

Automate FTP Session Script in Windows








Use the following command to automate FTP session in windows. 

In the following example, script.txt contains ftp commands to automate your session

c:\> ftp -s:script.txt ftp.ftpserver.com  

The contents of script.txt should look like this.
yourFTPUserName
yourFTPPassword    
bin    
cd /downloads   


put myfile1.zip   
bye
You can use this with your batch scripts to automate repeated tasks
Hope this is useful..!


Labels: scripts, Windows

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "Automate FTP Session Script in Windows"

What do you think about this Article? Add your Opinion..!

Back To Top