Jump to content

Download file with name changing


31290
 Share

Recommended Posts

Hi Guys, 

Hope you're doing fine today.

Well, I'm trying to achieve something I want to integrate to a tool I already created.

At work, we deploy computers massively and we use the tool to perform automatic operations. Then, we have to update the BIOS to the latest version. To avoid a heavy tool, I'd like to automatically download the latest BIOS on the Dell Website but the thing is that the name of the fail change when a new version is published. Of course, I cannot know what version will be deployed by Dell but I have this when connecting to the website:

2016-02-11_11-27-30.png.dca2d233e087b51e

Thus, I don't know if the FOLDERXXXXX of the download URL will change if a new version ins deployed. 

Here's one of the pages of a model we also use: http://www.dell.com/support/home/us/en/19/product-support/product/latitude-e5450-laptop/drivers/advanced

Well, i'm kind of stuck here and maybe someone could point something out :)

Thanks in advance ;)

~~~ Doom Shall Never Die, Only The Players ~~~

Link to comment
Share on other sites

Hi. You can do this.

 

#include <String.au3>
#include <Array.au3>

Local $sRead = InetRead('http://downloads.dell.com/published/pages/optiplex-7010.html', 1)
ConsoleWrite(BinaryToString($sRead) & @CRLF)
Local $aData = _StringBetween(BinaryToString($sRead), 'Type: BIOS', 'Category:')



Local $aLinks = _StringBetween($aData[0], '<A HREF="/', '"><IMG')

For $i = 0 To UBound($aLinks) - 1
    $aLinks[$i] = 'http://downloads.dell.com' & $aLinks[$i]
Next

;~ _ArrayDisplay($aLinks)

MsgBox(0, "Lastest Version BIOS", $aLinks[0])

Saludos

Link to comment
Share on other sites

Hi Danyfirex, 

That is so cool. I did not know about this page and what you proposed is working like a charm.

I'm gonna play with it and propose something very useful for us!

Thanks again!

~~~ Doom Shall Never Die, Only The Players ~~~

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...