Hi,
API declare
<DllImport("she ll32.dll", entrypoint:="SH EmptyRecycleBin A", _
setlasterror:=T rue, CharSet:=CharSe t.Ansi, exactspelling:= True, _
CallingConventi on:=CallingConv ention.StdCall) > _
Public Shared Function SHEmptyRecycleB in(ByVal hWnd As IntPtr, _
ByVal lpszRootPath As String, ByVal dwFlags As Integer) As Integer
End Function
Constants
Private Const SHERB_NOCONFIRM ATION As Integer = &H1
Example
SHEmptyRecycleB in(Me.Handle, Nothing, SHERB_NOCONFIRM ATION)
Ken
----------------------------
"victor" <ik@rebels.co m> wrote in message
news:41******** *************** @news.xs4all.nl ...
Hey
How can i emtpy the Windows trash can (i don't know the english word)
with vb.net?
thanks
Victor