Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get url from downloaded file?

Status
Not open for further replies.

cjtaylor

Programmer
Aug 12, 2001
69
US
Is there a way to get the associate url from a downloaded file? When I go to "C:\Documents and Settings\IQV\Local Settings\Temporary Internet Files" directory windows explorer shows all the urls in a column called "Internet Address", but I can't find a method to programatically retrieve this info.

Any help would be appreciated.
Chris Taylor
 
If i'm not misunderstanding You want to read the register and use the information in that?

If so is the case take a look at the TRegister class, use the help or search this site's FAQ.
 
Does windows really store the URL's you've visited, in the registry?!... My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
I'm not sure if that info is in the registry? Do you know if it is? Maybe I didn't explain myself well enough. What I am trying to do is, after you download a file(.exe,.zip,.mp3 etc.)from the internet that file is referenced in the internet cache. My cache happens to be here "C:\Documents and Settings\Chris\Local Settings\Temporary Internet Files" If you go there you will see basically a history of all the internet files. There is a column in the windows explorer that shows the url. This is the info I am after. I hope that makes sense.
 
I wouldn't know for certain if that info is stored in the registry or not (I was refering to Totte's post), but have you tried dealing with it "like" a normal folder?

And if I'm not mistaking it's just not a reference but a "cache" of the philes you've downloaded. The get stored there first, and then moved (copied?) to anoter location. This I believe since you can go there and copy the file(s) again!! There fore I believe you should be able to deal with it like a normal folder

I'm now quite sure you can (least find the path to the cached file), since I've made a program that searches through all folders (just launched it to se it's result on that folder.) HOWEVER, the information is NOT stored basicly in the "\Temporary Internet Files", but in "\Temporary Internet Files\Content.IE5\C5MBGHM7" (however, the last two directiories I would guess depends on your browser, and something else) So finding out where you downloaded a certain file from isn't going to be that easy.

I guess you could search through those directories for the file name and then try to find out where it was downloaded from! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top