Hi!
I think there may be a bug with the path.parts command, could anybody please confirm or deny?
I have made an automated downloader for MS updates, in a text file I have the name of the update and then a Delimiter, then the download location, on running the app loads this into the listbox, it mostly goes well, but it fails with long names, let me show you the code I am using:
The above code is on click for a button, it works with most download locations, BUT say the location is a long one, such as:Code:sItems = ListBox.GetCount("ListBox1"); for count = 1, sItems do strItemData = ListBox.GetItemData("ListBox1", count); path_parts = String.SplitPath(strItemData); StatusDlg.Show(0, false); StatusDlg.SetTitle("Downloading Your Files... Please be patient!"); StatusDlg.ShowCancelButton(true, "Cancel"); StatusDlg.SetMeterRange(0, 65534); HTTP.Download(strItemData, sDloadFold.."\\"..path_parts.Filename..path_parts.Extension, MODE_BINARY, 20, 80, nil, nil, DownloadCallback); StatusDlg.Hide(); end
it fails to download and I dont know whyCode:http://www.microsoft.com/downloads/info.aspx?na=41&srcfamilyid=50c334e1-9a67-4b99-a65a-069b79267856&srcdisplaylang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f5%2ff%2fd%2f5fdc6240-2127-42b6-8e16-bab6171db233%2fWindowsXP-KB898461-x86-ENU.exe
Can somebody check this and tell me why please?

Reply With Quote




