I'm developing an application that stores a list of files and their locations at various web addresses. These details are stored in the application so that the files can be downloaded automatically each month using URLDownloadToFile in one fell swoop.
I want the user to load up the file details as follows:
1. Open an instance of explorer
2. Navigate to a site that holds several comboboxes which determine which file is downloaded
3. User makes the usual selections from the combo boxes, then presses "Export to Excel"
4. At this point, everything that has happened so far is part of the normal manual download process. Once the "Export . . ." button is pressed, a download dialog box opens asking the user whether he wants to open or save. It is at this point that the full HTTP address (including the filename) shows in Explorer's status bar in the bottom left. I need a way of recording this address to a string variable that will be displayed in a ListView in my application (and eventually passed to URLDownloadToFile when the user performs the monthly automatic download process).
Does anyone know the answer?