VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code can be used to send the file to the recycle bin. In general when u r deleting the file it

Chaudhary Pradeep Kr Roy  (6 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Sat 29th November 2003   Mon 8th February 2021

This code can be used to send the file to the recycle bin. In general when u r deleting the file it gets deleted permanently. can be used to

API Declarations


Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long

'\ Here i am definig the structure
Private 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

'\ Below is the list of contants we will be using
Private Const FO_DELETE = &H3
Private Const FOF_ALLOWUNDO = &H40
Private Const FOF_NOCONFIRMATION = &H10
Private Const FOF_SILENT = &H4


Rate This code can be used to send the file to the recycle bin. In general when u r deleting the file it (1(1 Vote))
This code can be used to send the file to the recycle bin. In general when u r deleting the file it.bas

This code can be used to send the file to the recycle bin. In general when u r deleting the file it Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters