
Logfile (optional) that makes an entry showing the result of processing each line in the input file. In other words, they're comments (helpful for documenting the input file).
Ignores lines in the input file with a semi-colon (. Ignores blank (empty/null) lines in the input file (helpful for improving readability). | c:\My Folders\AutoDown Output\test good.pngĪttached is a sample (working) input file. Here's a sample input line with the local file name specified (it may wrap to two lines in this article, but, of course, it is on one line in the input file): Here's a sample input line without specifying the local file name: You may change this via the assignment statement that puts a value in the FieldSeparator variable, but keep in mind that you don't want the StrSplit (string split) function to find the separator in the web address or the local file name. So, the two characters together provide a perfect way to separate the fields. I chose this two-character separator because the vertical bar is invalid in a file name and the space is invalid in a URL. Expects the two fields to be separated from each other with a vertical bar (the "pipe" character) followed by a space. Allows any number of lines in the input file, with each line representing a file to download. The name of the file will be automatically derived from the URL. If the second field is not specified, the downloaded file will be stored in a folder assigned to a variable in the script ( OutputFolder). The second field (optional) is the full path/name of the local file on the PC to store the downloaded file. The first field (required) is the web address (URL) of the file to download. Supports the specification of a plain text input file (in the FileListInput variable) that contains one or two fields on each line. The script presented in this article works as follows: If you are not familiar with AutoHotkey and this article piques your interest in it, one of my other EE articles will get you started on it:
I wrote the script in the AutoHotkey language. I posted a quick-and-dirty script with the solution at the question, then decided to develop a more robust script, which I'm presenting in this article. In an interesting question here at Experts Exchange with a subject of "Windows 10 Automation.", a member asked for a solution "to download one by one automatically" ten (10) specific files from the web.