1

I need to download 10-15 programas every week, and looking how to automate the process. It's easy when I know exactly the name of .exe file; but what about the case when I dont?

For example, lets look at malwarebytes at https://www.malwarebytes.org/mwb-download/ When you open the link in browser it promts you to download the file mbam-setup-2.XXXXX.exe The file comes from site: http://data-cdn.mbamupdates.com/v2/mbam/consumer/data/mbam-setup-2.0.4.1028.exe

Now, how can it be downloaded via powershell (or .bat, or whatever, less code, the better) without user interaction? And without changing the script when malwarebyte isues new version.

2
  • Scrape the link on the page to get the current file URL? Jan 5, 2015 at 17:18
  • ok, but how do I do that?
    – wendor
    Jan 6, 2015 at 20:47

1 Answer 1

0

An easy way would be to use wget:

wget  http://downloads.malwarebytes.org/file/mbam/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .