Share this post

Link to post

Share on other sites

It is hardly surprising as _FileListToArrayRec is essentially my earlier _RecFileListToArray UDF - at the time of the original thread the code was not incorporated into the standard includes.

M23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort---- Sort arrays on multiple columnsChooseFileFolder---- Single and multiple selections from specified path treeview listingDate_Time_Convert-- Easily convert date/time formats, including the language usedExtMsgBox--------- A highly customisable replacement for MsgBoxGUIExtender-------- Extend and retract multiple sections within a GUIGUIFrame---------- Subdivide GUIs into many adjustable framesGUIListViewEx------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx------ Check/clear parent and child checkboxes in a TreeViewMarquee----------- Scrolling tickertape GUIsNoFocusLines------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify------------- Small notifications on the edge of the displayScrollbars----------Automatically sized scrollbars with a single commandStringSize---------- Automatically size controls to fit textToast-------------- Small GUIs which pop out of the notification area

Hi everyone, hope you are doing fine
Well, I'm currently writing a small script that goes to a certain web page, finds the first link of a specified section and download the file associated to this link.
Depending on the computer that the tool is launched, the script gets the computer model and search in the (provided here) ini file which link to follow.
At first, Dell was kind enough to provide only one link but now, they provide two of them. The first one is now a .txt file ( ) whereas my script has been designed to download only the fist and latest link released for the BIOS Update.

Here's the current code which is working with only the first and latest link of the BIOS category:
So the question is:
In the case of double links like shown in the picture above, how it is possible to tell the script to download only the link containing an the .exe file?
Of course, I could have changed the array result to [1] instead of [0] [which is working] but it seems that Dell does that randomly and that I deal with a lot of computer models.
Thanks for the help you can provide,
-31290-

Translated by Google. Sorry for any mistakes.
Sorry for creating this post based on other great creations but after 15 days searching for a solution to a problem beast I solved them.
Maybe someone new like me can take advantage of this solution for their programs without wasting so much time
I want to leave here my thanks to the 2 post that saved my life
First the Yashied for the excellent work in the article:

And commenting on improvements to the _FileGetShortcutEX function Commented on by
Ascend4nt

Hi everyone,
Following this page:
http://downloads.dell.com/published/pages/latitude-e5450-laptop.html
I have to download the BIOS for the E5440 model. As I don't know in which order Dell will place the description and the link to download the file (also because the 5440 can be put in first) I'd like to make the following piece of code to search only first the link that deals with the E5440:
(The only thing I'm sure is that the string E5440 will be either in the first or the second position and I need to download the corresponding link)
Local $sRead = InetRead('http://downloads.dell.com/published/pages/latitude-e5450-laptop.html', 1)
ConsoleWrite(BinaryToString($sRead) & @CRLF)
Local $aData = _StringBetween(BinaryToString($sRead), 'Type: BIOS', 'Category:')
TrayTip("", "Downloading latest BIOS Version, please wait...", 10, 3)
Local $aLinks = _StringBetween($aData[0], '<A HREF="/', '"><IMG')
For $i = 0 To UBound($aLinks) - 1
$aLinks[$i] = 'http://downloads.dell.com/' & $aLinks[$i]
Next
Local $hDownload = InetGet($aLinks[0], @DesktopDir & "\BIOSE5450.exe", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
Do
Sleep(250)
Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE)
Local $iBytesSize = InetGetInfo($hDownload, $INET_DOWNLOADREAD)
Local $iFileSize = Round(FileGetSize(@DesktopDir & "\BIOSE5450.exe") / 1048576)
InetClose($hDownload)
MsgBox(0, "", "The latest E5450 BIOS (" & $iFileSize & " MB) have been downloaded")
I was thinking of an string search in the array but all my attempts failed for now.
Can someone could give me a hand over here.