We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Is there any way to "catch" the default download carpet of Firefox by means of code (i.e, an app made in VBA which can run in many computers)

  • 4 ответа
  • 1 имеет эту проблему
  • 20 просмотров
  • Последний ответ от cor-el

more options

I am making an Excel VBA application in which I need to download a file whit Firefox. Due that this app must run in many computers with differents default download carpets, is there any way to "cath" the default download carpet of Firefox by means of code, in this case, VBA ). Is this default carpet "hidden" at any place in the Windows register? This could also help me.

Thanks in advance.

Julio

I am making an Excel VBA application in which I need to download a file whit Firefox. Due that this app must run in many computers with differents default download carpets, is there any way to "cath" the default download carpet of Firefox by means of code, in this case, VBA ). Is this default carpet "hidden" at any place in the Windows register? This could also help me. Thanks in advance. Julio

Все ответы (4)

more options

Hi Julio, your Office VBA code can use XMLHTTP to retrieve and read a file in the background. Example: https://stackoverflow.com/questions/36221544/excel-vba-open-url-without-opening-browser

Is there a reason you need to use Firefox in particular? On Windows the typical path is either:

  • "C:\Program Files\Mozilla Firefox\firefox.exe"
  • "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"

Your code can determine which file exists and use the one it finds. There might also be a Registry key, but I haven't looked.

more options

Thank You very much for your answer but my question is related to the default carpet in which Firefox downloads files from the net, not the carpet where the browser is installed. On the other hand, I created an "imaginary" carpet , declared it as the default download carpet of Firefox and I didn't found it in the Windows registry, so, I suppose that the adress of that carpet is not stored in the registry.

more options

By default, Firefox stores the last used download folder on a per-site basis, in a SQLite database. This will be difficult for your app to discover. I think you will need the user to save files needed by your application in a particular folder such as the default Windows download folder.

more options

You can also look at wget.