5 bucks to a Dreamweaver or FTP client guru!
I’m having a small problem doing what I want, and the first person to figure it out gets 5 bucks paypal from me, instantly!
I have a website that I want to add google tracking code to, and Dreamweavers handy “find and replace in all files” feature can do just that for me… however, i don’t have all the files on my local hard drive. I want to download ONLY the htm, html, and php files from the site. I can “get” the entire site, no problem, but there is so much extra data, that I don’t feel like killing my internet connection for 3 hours downloading everything.
Anyone who can tell me how to just download all files of a type from a site, gets five bucks via paypal. Thank you in advance.
| 2.9 |
Stumble it!
Post Info
This entry was posted on Friday, December 28th, 2007 and is filed under B2B, development. It has 105 viewsComments Feed. | Leave Comment | Leave Trackback.
Previous Post: MySpace Backgrounds »
Next Post: Add Google Analytics code to your entire website in a flash »
Most viewed posts

























December 30th, 2007 01:26
Hey, you can easily download all files of certain types from a given directory using the Windows command-line and some basic ftp commands.
here is a list of basic ftp commands:
http://www.nsftools.com/tips/RawFTP.htm
If you want more of an exact example something like this:
1) Start > Run > type cmd and press enter(honestly not sure if this works in vista, but it does in XP, either way, open up a command prompt).
2) Type ftp http://ftp.yourhost.com (replace http://ftp.yourhost.com with your actual ftp host, der).
3) You will be prompted to login with your credentials, do so.
4) Type cd /path/to/your/files
5) Type mget *.php *.htm (etc,etc, for all file types you wish to retrieve).
*NOTE* the files are retrieved to whichever directory you started in, usually your my documents folder in windows xp and later.
It’s like candy.
December 30th, 2007 04:12
Ah… but what about subdirectories?
December 30th, 2007 15:15
Well, you can do it the slow way with ftp by going to each subdirectory and running the same command - but that is not a feasible solution because each file from the subdirectory will be dumped in the same local folder, possible overwriting files with the same name that exist in other directories.
The only real solution I see here, without invoking a third party utility (as there are some), would be to use the rcp command from the Windows command line..
Here is a good reference for the rcp command:
http://moka.ccr.jussieu.fr/doc_link/en_US/a_doc_lib/cmds/aixcmds4/rcp.htm
December 30th, 2007 15:18
btw - your comment template sucks lol.
December 30th, 2007 15:31
One more thing, you should check out the Subscribe to Comments plugin, to allow your readers to get a notification when someone replies to a thread that they have commented on.
http://txfx.net/code/wordpress/subscribe-to-comments/
December 30th, 2007 20:06
Back to the question, like I said, you can do this (much easier) with a 3rd party app such as AutoFTP:
http://www.primaftp.com/ftp_help/auto_ftp_service_download_using_wildcard.htm
January 30th, 2008 23:52
[...] put a challenge out there a few weeks ago, and it was not met. I however, stumbled on it [...]