BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OLE automation to delete temporary Internet files?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Barry
Guest





PostPosted: Wed Jan 26, 2005 3:19 pm    Post subject: OLE automation to delete temporary Internet files? Reply with quote




I am using Windows API functions to delete temporary Internet files on exit of my program. It removes almost all of them, but a few files are still left undeleted. If I start Internet Properties dialog box -> General tab, and click "Delete Files" in the "Temporary Internet Files" frame, all temporary Internet files are deleted. How can I use OLE automation to delete temporary Internet files? Thank you.

Barry
Back to top
Barry
Guest





PostPosted: Wed Jan 26, 2005 3:39 pm    Post subject: Re: OLE automation to delete temporary Internet files? Reply with quote




Mike,
That is exactly what I am currently using, and like I mentioned
before, it doesn't delete ALL temp files, a couple of sensitive
files are left undeleted. On the other hand, the Internet
Property dialog box allows delete all temp files.

Thanks - Barry

"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
Quote:
You need the
FindFirstUrlCacheEntry+FindNextUrlCacheEntry+DeleteUrlCacheEntry functions.
See the sample:
http://www.swissdelphicenter.ch/en/showcode.php?id=1150

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Barry" <byelko (AT) netscape (DOT) net> wrote in message
news:41f7b4ef$1 (AT) newsgroups (DOT) borland.com...

I am using Windows API functions to delete temporary Internet files on
exit of my program. It removes almost all of them, but a few files are still
left undeleted. If I start Internet Properties dialog box -> General tab,
and click "Delete Files" in the "Temporary Internet Files" frame, all
temporary Internet files are deleted. How can I use OLE automation to delete
temporary Internet files? Thank you.

Barry




Back to top
Mike Shkolnik
Guest





PostPosted: Wed Jan 26, 2005 3:57 pm    Post subject: Re: OLE automation to delete temporary Internet files? Reply with quote



There is no another way to delete the temp.files. IE doesn't support this
feature via OLE-automation

Anyway the FindFirstUrlCacheEntry+FindNextUrlCacheEntry+DeleteUrlCacheEntry
must work - just debug and check what is an error occured for some files.
MaybŐ from error code/message we'll find some solution:-)

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Barry" <byelko (AT) netscape (DOT) net> wrote

Quote:

Mike,
That is exactly what I am currently using, and like I mentioned
before, it doesn't delete ALL temp files, a couple of sensitive
files are left undeleted. On the other hand, the Internet
Property dialog box allows delete all temp files.

Thanks - Barry

"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
You need the
FindFirstUrlCacheEntry+FindNextUrlCacheEntry+DeleteUrlCacheEntry
functions.
See the sample:
http://www.swissdelphicenter.ch/en/showcode.php?id=1150

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Barry" <byelko (AT) netscape (DOT) net> wrote in message
news:41f7b4ef$1 (AT) newsgroups (DOT) borland.com...

I am using Windows API functions to delete temporary Internet files on
exit of my program. It removes almost all of them, but a few files are
still
left undeleted. If I start Internet Properties dialog box -> General tab,
and click "Delete Files" in the "Temporary Internet Files" frame, all
temporary Internet files are deleted. How can I use OLE automation to
delete
temporary Internet files? Thank you.

Barry






Back to top
Barry
Guest





PostPosted: Wed Jan 26, 2005 6:14 pm    Post subject: Re: OLE automation to delete temporary Internet files? Reply with quote


Mike,
At some point, while I still can see remaining temp files, after
running the following line of the code:

FindNextUrlCacheEntry(hCacheDir, TInternetCacheEntryInfo(nil^), dwEntrySize);

DwEntrySize becomes equal 0, and the execution exits the
repeat..until loop. It looks like those temp files are somehow
"invisible" for the FindNextUrlCacheEntry...

Thanks - Barry

"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
Quote:
There is no another way to delete the temp.files. IE doesn't support this
feature via OLE-automation

Anyway the FindFirstUrlCacheEntry+FindNextUrlCacheEntry+DeleteUrlCacheEntry
must work - just debug and check what is an error occured for some files.
MaybŐ from error code/message we'll find some solution:-)

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Barry" <byelko (AT) netscape (DOT) net> wrote in message
news:41f7b9c9$1 (AT) newsgroups (DOT) borland.com...

Mike,
That is exactly what I am currently using, and like I mentioned
before, it doesn't delete ALL temp files, a couple of sensitive
files are left undeleted. On the other hand, the Internet
Property dialog box allows delete all temp files.

Thanks - Barry

"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
You need the
FindFirstUrlCacheEntry+FindNextUrlCacheEntry+DeleteUrlCacheEntry
functions.
See the sample:
http://www.swissdelphicenter.ch/en/showcode.php?id=1150

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.