Did you try the other code? That wasn't just for VB4.
Code:
Public Type SHFILEOPSTRUCT
hwnd As Long
wFunc As Long
pFrom As String
pTo As String
fFlags As Integer
fAnyOperationsAborted As Long
hNameMappings As Long
lpszProgressTitle As Long
End Type
Public Declare Function SHFileOperation Lib _
"shell32.dll" Alias "SHFileOperationA" (lpFileOp _
As SHFILEOPSTRUCT) As Long
Public Const FO_DELETE = &H3
Public Const FOF_ALLOWUNDO = &H40
Usage
Dim SHop As SHFILEOPSTRUCT
Dim strFile as string
With SHop
.wFunc = FO_DELETE
.pFrom = strFile '<-file to be recycled
.fFlags = FOF_ALLOWUNDO
End With