Make 3rd param unnecessary for "UrlDownloadToFile" command

Propose new features and changes
kidbit
Posts: 168
Joined: 02 Oct 2013, 16:05

Make 3rd param unnecessary for "UrlDownloadToFile" command

24 Nov 2013, 17:58

When pointing to a file - it's name is either already mentioned in the url or will be suggested by the server (for cases when a file is generated by a query).
Thus, it's not really necessary to specify the destination of the file to be downloaded: currently, you already can omit the path for destination file - (%A_WorkingDir% will be used in this case), but you can't omit the destination file's name, which is uncomfortable if you'd like to preserve the one from the source, but don't want to SplitPath.
question := (2b) || !(2b) © Shakespeare.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Make 3rd param unnecessary for "UrlDownloadToFile" comma

25 Nov 2013, 02:47

The 3rd param is already unnecessary. I mean, URLDownloadToFile only has two parameters... :P

URLDownloadToFile isn't aware of what name the server suggests. If you want to have the filename based on the URL, you can always write your own Download function which calls URLDownloadToFile.

When automating the download of a file, wouldn't you generally want to know for sure where the file is going to be written, so that you can do something with it? If you let the command decide the name, you won't know.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 61 guests