Saturday, May 15, 2010

Empty Recyclebin .net source download

Empty Your computer recycle bin with this .net project and learn how coding works to cleaning the recycle bin in windows version............


Public Class Form1

'A code by abhishek kherde If u like it mail me at abhishekkherde@in.com

Private Declare Function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA" (ByVal hWnd As Int32, ByVal pszRootPath As String, ByVal dwFlags As Int32) As Int32

Private Declare Function SHUpdateRecycleBinIcon Lib "shell32.dll" () As Int32

Private Const SHERB_NOCONFIRMATION = &H1

Private Const SHERB_NOPROGRESSUI = &H2

Private Const SHERB_NOSOUND = &H4

#Region "Empty Recycle Bin (SUB)"

Private Sub EmptyRecycleBin()

SHEmptyRecycleBin(Me.Handle.ToInt32, vbNullString, SHERB_NOCONFIRMATION + SHERB_NOSOUND)

SHUpdateRecycleBinIcon()

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

EmptyRecycleBin()

End Sub

End Class




For Further Reading,
C#, Empty RecycleBin, VB .NET

0 comments:

Post a Comment