Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using DeleteUrlCacheEntry to delete a single file

715 views
Skip to first unread message

Jerry West

unread,
Apr 24, 2007, 5:29:10 PM4/24/07
to
I have a single file in the IE cache I want deleted. I am using
DeleteUrlCacheEntry to do so:

l& = DeleteUrlCacheEntry("C:\Documents and Settings\user\Local
Settings\Temporary Internet Files\file.cab")

I always get back an error of 2 indicating that the file cannot be found. If
I open Windows Explorer and view the path I see that the file is indeed
there. Is there another method to using this API other than the example I
show here? Is what I am doing not possible?

Thanks,

JW


Scherbina Vladimir

unread,
Apr 25, 2007, 6:14:28 AM4/25/07
to
Have you tried DeleteUrlCacheEntry("C:\\Documents and Settings\\user\\Local
Settings\\Temporary Internet Files\\file.cab") ?


--
--Vladimir, Windows SDK MVP
"Jerry West" <j...@comcast.net> wrote in message
news:132stl7...@news.supernews.com...

Tony Proctor

unread,
Apr 25, 2007, 9:25:50 AM4/25/07
to
You don't need to pair up any "\" characters in VB Jerry. Try playing with
this example to see if it behaves the same way:
http://groups.google.ie/group/microsoft.public.vb.general.discussion/msg/bda75aa7b34e6248?hl=en&

Tony Proctor

"Jerry West" <j...@comcast.net> wrote in message
news:132stl7...@news.supernews.com...

J French

unread,
Apr 25, 2007, 9:45:42 AM4/25/07
to
On Wed, 25 Apr 2007 14:25:50 +0100, "Tony Proctor"
<tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote:

>You don't need to pair up any "\" characters in VB Jerry. Try playing with
>this example to see if it behaves the same way:
>http://groups.google.ie/group/microsoft.public.vb.general.discussion/msg/bda75aa7b34e6248?hl=en&

Yes the '\\' stuff is just C conventions
- like talking Mandarin in Shanghai

Try manually deleting the file - I'll bet you get 'access denied'


Jerry West

unread,
Apr 25, 2007, 1:18:14 PM4/25/07
to
The example appears to enumerate through all the cache files. I was hoping
to simply enter the specific path of a cache entry and delete it without the
need to loop through the entire cache. Anyone know if this is possible?

Thanks,

JW

"Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message
news:f0nksu$o23$1...@reader01.news.esat.net...

Tony Proctor

unread,
Apr 25, 2007, 2:16:35 PM4/25/07
to
The suggestion was not to use that sample as a replacement for your code,
but to see if the results are any different when you attempt to delete the
same file entry. If it works in this sample code then you need to see what
it does that's different your own code.

Also, don't forget Jerry French's suggestion of attempting to manually
delete it. Maybe it's just protected

Tony Proctor

"Jerry West" <j...@comcast.net> wrote in message

news:132v3ao...@news.supernews.com...

0 new messages