List last modified files using FTP Command-line

Why?
So let's say my FTP client is not the most expensive (was FREE), nor the most advanced client out there, and I want to know what were the most recent files I modified and uploaded to a site, how do I do it using just Microsoft Windows?

How?
I don't have a clue. Here's what I've got so far:

  1. Open a command-prompt (Start > Run > Type COMMAND > OK)
  2. Type ftp my_ftp_host (where "my_ftp_host" is the hostname or IP of the server holding my site)
  3. Enter login credentials
  4. Type dir (lists files & folders in the current remote working directory)
  5. Type cd /path/to/my/website to change directory to the root folder containing your website.
  6. Type pwd to confirm the remote working directory is the current directory.
  7. Type lcd to confirm what the local working directory is (when you download or print output, it will save to this folder on your computer). Can type lcd <another_working_directory> if you want to change this (leave blank to simply display what current local working directory is).
  8. Type dir -S . temp.txt which will output all files including subdirectories to temp.txt in your local working folder.

Additional Notes
  • the switch "-S" does not work on certain systems (at least not accompanied with the command to output to a local file. Type dir . temp.txt to output the current remote directory list of files to the local file temp.txt.

Other Searches
  • msdos ftp print server directory to local file

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Related Articles

Joes Revolver Map

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.