New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



How to clear IE cache through vb.net


Posted Date:     Total Responses: 0    Posted By: UltimateRengan   Member Level: Gold   Points/Cash: 6   


The follwoing code will use to delete the IE cache through vb.net
just import the system.io namespace.





Imports System.IO
Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

'Function ClearCache()

If ClearCache() = True Then
Response.Write("Cache Cleared")
Else
Response.Write("Cache not cleared")
End If
End Sub
Sub EmptyCacheFolder(ByVal folder As DirectoryInfo)
For Each file As FileInfo In folder.GetFiles()
file.Delete()
Next
'For Each subfolder As DirectoryInfo In folder.GetDirectories()
' EmptyCacheFolder(subfolder)
'Next
End Sub

'Function which is used for clearing the cache
Public Function ClearCache() As Boolean
Dim Empty As Boolean
Try
EmptyCacheFolder(New DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)))
Empty = True

Catch
Empty = False

End Try
Return Empty


End Function
End Class


Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: Sample Shellscripting Programme
Previous Project: Connection Between SAP and Dotnet

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.