Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Download newest file

Unless you can "calculate" the name of the weekly folder somehow, you cannot use simple scripting.

You will have to use a more powerful language, like PowerShell, with a use of WinSCP .NET assembly.

You can start with this script:
https://winscp.net/eng/docs/script_download_most_recent_file#powershell

You just need to repeat the latest file selection for both the folder and the file.
zetrrux

Download newest file

Hi!

I need a script to download the newest file from the newest folder in cmd. A new folder is created every week. I made a script that can download the latest file from a folder, but I have to rewrite the download path every week. Please help how can I make it.