Hi,
API declare
<DllImport("shell32.dll", entrypoint:="SHEmptyRecycleBinA", _
setlasterror:=True, CharSet:=CharSet.Ansi, exactspelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Public Shared Function SHEmptyRecycleBin(ByVal hWnd As IntPtr, _
ByVal lpszRootPath As String, ByVal dwFlags As Integer) As Integer
End Function
Constants
Private Const SHERB_NOCONFIRMATION As Integer = &H1
Example
SHEmptyRecycleBin(Me.Handle, Nothing, SHERB_NOCONFIRMATION)
Ken
----------------------------
"victor" <ik@rebels.com> 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