nanocoder
December 5th, 2005, 10:00 PM
i want write program clear temp internet and history. who known? please help me, thank.
|
Click to See Complete Forum and Search --> : program clear temp internet and history nanocoder December 5th, 2005, 10:00 PM i want write program clear temp internet and history. who known? please help me, thank. boudino December 6th, 2005, 03:01 AM These directories are well-know, you can easily locate them and delete it contents. E.g. using environment variables. Temporary internet files: %USERPROFILE%\Local Settings\Temporary Internet Files\ History: %USERPROFILE%\Local Settings\History You will need classes System.Environment and System.IO.Directory Jason Isom December 6th, 2005, 08:27 AM Alternatively: string historyPath = System.Environment.SpecialFolder.History; string tempInternetPath = System.Environment.SpecialFolder.InternetCache; nanocoder December 6th, 2005, 10:46 AM i delete file Content.IE5 have error "Additional information: Access to the path "C:\Documents and Settings\Tran_Dai_Hai\Local Settings\Temporary Internet Files\Content.IE5" is denied." , please help me. thank boudino December 7th, 2005, 01:42 AM Surely, you have to delete your own directories or you have to be an administrator. Also I would expect that the delete will be impossible if an instance of IE is running. Check this. And yet small note: mentioned directories are valid for IE. E.g. Firefox uses other locations. nanocoder December 7th, 2005, 11:12 AM please help me fix error my code : string str =System.Environment.GetFolderPath(System.Environment.SpecialFolder.InternetCache); str=Directory.GetFileSystemEntries(str)[0]; File.Delete(str); //error Additional information: //Access to the path "C:\Documents and Settings\Tran_Dai_Hai\Local Settings\Temporary Internet Files\Content.IE5" is denied. please give me source code delete file content.ie5 ( clear temp internet) boudino December 8th, 2005, 02:28 AM Just guessing: Content.IE5 is another directory which has not to be empty. Ensure that you have deleted all content of the directory first and than the directory itself. nanocoder December 8th, 2005, 11:40 AM i unknown delete that directory (content.ie5), please give me source code. thank. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |