default | grid-3 | grid-2

Post per Page

FTP Script from the command line

For the longest time I have always used wget to handle command line ftp downloads.

For one particular download I was doing wget stopped working with wildcards.  Probably something to do with the server I was connecting to.

I started researching and found a cool windows batch file to do this:


Windows server 2003 and Windows XP – How to script file download from FTP server


Here is the script from the example altered for my needs.

@echo off
echo user MyUserName> ftpcmd.dat
echo MyPassword>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo prompt>>ftpcmd.dat
echo cd IDX>>ftpcmd.dat
echo mget pics-*-2*.tar>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat SERVERNAME.COM
del ftpcmd.dat

No comments

Error Page Image

Error Page Image

Oooops.... Could not find it!!!

The page you were looking for, could not be found. You may have typed the address incorrectly or you may have used an outdated link.

Go to Homepage