Post a reply

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)


Topic review


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:

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

Download newest file


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.