Avatar of StormNet
StormNet
 asked on

Retrieve an image from Cache and save it to another location

Hi all,

I would like to retrieve an image from the Cache and save it to another location on my disk.  I would also like to be able to retrieve some of their attributes like the date and time it was saved to to cache (if possible)

I would really appreciate any help!

Regards
HTMLWeb Development

Avatar of undefined
Last Comment
StormNet

8/22/2022 - Mon
Jeffrey Coachman

Again, more of a Web/HTML question than an MS Access question.

Click the Request Attention link for help assigning the most appropriate zones.

;-)

JeffCoachman
kbirecki

I see two aspects to your question:
1) How to determine where the Cache is for Temporary Internet Explorer files, correct?
2) How to determine Save date and time, correct?

For 1, I did a quick check and I'm seeing conflicting information.  I was looking for the registry entry for the location of the IE cache.  In one place, it says it is at HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache, but on my machine, where I have changed the default to a specific folder, it seems to actually be using the %TEMP% environment variable and adding "Temporary internet Cache" to the end of the env var.  And I have my cache being deleted upon shutdown, so I'd have to test with different settings to see where the files are actually stored.

Additionally, there will be subfolders in which the actual content is stored, and you may have to just traverse the subfolders depending on what you are looking for (all files?  certain files?)

For 2, I'm guessing that you could possibly look at the file properties create date to determine when it was originally saved, but again, I'm seeing conflicting info, possibly because I clear out my cace constently to avoid problems with the cache.

I can try some ideas later tonight, but if you have a chance, maybe you can find something based on those ideas.  
kbirecki

OK, I worked out a way to do all of this in VB6, but there is one hitch to doing it in Access.  You are trying to do this in Access, correct?  Just checking, but is that you're only option?  If it is, I need to find a workaround for the one hurdle I ran into.  Let me know.
Your help has saved me hundreds of hours of internet surfing.
fblack61
kbirecki

And if it has to be Access, what version of Access?
ASKER CERTIFIED SOLUTION
kbirecki

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
kbirecki

Oops, I meant that the target location that the files are copied to is "C:\temp\IECacheFileCopy", which you should create first.
StormNet

ASKER
Hi kbrecki,

Thanks for your input.  I've had a look at the code and I'll be testing out the code this evening when I get home again.

Regards
Shawn
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
StormNet

ASKER
It worked very well, Thank you!
StormNet

ASKER
Hi kbrecki,

Just an update:  I use Access 2003 and for the interest of anyone else these were the actions I took.

Received Error: your microsoft office access database or project contains a missing or broken reference to the file 'owc10.dll' version 1.2
Action: downloaded and installed owc11.dll  (for Access 2003)

Error on compile: FOF_SIMPLEPROGRESS  not defined
Action: added  Const FOF_SIMPLEPROGRESS = &H100&  under option explicit

Once again, thank you very much.  This will make my life a lot easier.

Regards