There might be a problem of where it asks you if you want to keep or discard the file due to the fact that it is an. I will still put in the code that would work without this problem.
You can take a look at the Readme. And here is another batch file using powershell to download the firefox setup with admin rights :. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to write a batch file to download and install Firefox on Windows machine?
Ask Question. Asked 3 years, 10 months ago. Active 3 years, 10 months ago. Viewed 3k times. Open text editor. Write code for script. Run it. That was tongue-in-cheek, of course. This is not a free code-generation service. Ninite makes this way easier. And doesn't Firefox auto-update when you open it? Add a comment. Active Oldest Votes. Give a try for this batch script written by Sachadee. Hackoo Hackoo This, of course, assumes you want the French version of Firefox. You may want to tweak as necessary.
Answer By default, the resource list displays the estimated filenames of the collected links. These names are usually different from those displayed on the web page. There are many possible strategies here: If the desired items are images, it may be better to use the thumbnails view there is a special toggle button for this.
If you know the file extensions of the desired items, you can use this info for the extensions filter box.
Sometimes it may be better to select a text zone on the web page including relevant links and use the context menu to extract only links from this selected text range. More generally, it's important to know that every item has some textual info associated to it. Or simpler, all: word if you are not sure where the word comes from. Every item in the resource list can be right-clicked and this will reveal an informative popup will all info known for that item.
Question 4. How to set a custom download directory? Answer On the resource list tab, there is a directory input field. Here the user can set a download directory. Please note that every such directory is defined only relative to the default download directory this is a web extensions security limitation , so you can define only subdirectories of this main directory.
Another thing you can do is to use the general browser settings to change the location of this default download directory. Also, the user can prepare a custom favorite folders list see extension's options, the Download directories section. Once defined, this list will be available via autocomplete or simply by double-clicking this text field. Question 5. Why there are two add to queue buttons? Answer After checking some items from the resource list you can decide to send them either to the active queue, either to the passive queue using the corresponding buttons.
Sending to the active queue means that downloading starts immediately or as soon as possible. This is the best option if you are content with the default names or don't care too much about that. On the other hand, sometimes it's better to rename queued items before starting downloading them.
This can be done either individually using the edit button associated with every item from download list or in batch mode using the multi-rename dialog Question 6.
I want to download some files from the resource list but I don't like the filenames used there. On the original web page, they had other, better names. How to change that? But if the user clicks the name header of the resources table, he will be able to choose another attribute url, title, text, alt text for the actual displaying.
The most obvious candidate is the text attribute; that usually corresponds to what the user sees on the web page. Sending to the queue will preserve this displayed mask. But once the items are added to the queue not for immediate downloading , it's possible to rename them in more advanced ways. You can select some items and use the available multi-rename dialog for batch renaming them. Here you can set a common name mask using many types of available masks, and combine them in various ways.
Your extension is not capable to download embedded videos. Answer My extension is, indeed, not designed to download embedded videos or streaming media but only normal, direct links. The main reason is that these extensions are most exposed to all sorts of legal issues and I don't want my extension to be taken down. Though, in the future, it's possible to add some more support for these types. Question 8. Your extension is not capable to download files from sites X, Y, Z Answer My extension tries always to detect links that are included in the html source of the web pages.
But sometimes this doesn't work well. Many sites don't really like their resources to be mass downloaded because this way the users skip the associated ads. So, in some cases, the URLs are embedded in nonstandard ways or, even worse, the resources are visible on the page as "fake" links, meaning that the real URLs of the resources are generated by the server on the fly, only when the user clicks their name.
One solution to this problem is to use an appropriate userscript designed specifically for the site X. There are some very popular userscript managers around, for example Greasemonkey on Firefox or Tampermonkey on Chrome. If the user knew some javascript he may be able to build for site X a special userscript which facilitates subsequent downloading using Simple Mass Downloader extension. More precisely, my extension can recognize the special attributes data-smd-url and data-smd-name and use them for mass downloading.
Of course, the main problem here is to build the helper userscript.
0コメント