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.

This entry was posted in B2B, development and tagged , , . Bookmark the permalink.

7 Responses to 5 bucks to a Dreamweaver or FTP client guru!

  1. 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.

  2. admin says:

    Ah… but what about subdirectories?

  3. 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

  4. btw – your comment template sucks lol.

  5. 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/

  6. 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

  7. Pingback: whathuh studios rant | Exclude certain file types from FTP operations

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash

Subscribe without commenting