Jump to content

Check if recycle bin has files inside?


Recommended Posts

Global $SHQUERYRBINFO = DllStructCreate("align 1;int;int64;int64") ; v3.2.11.3

DllStructSetData($SHQUERYRBINFO, 1, DllStructGetSize($SHQUERYRBINFO))

$Query = DllCall("shell32.dll", "int", "SHQueryRecycleBin", "str", "C:\", "ptr", DllStructGetPtr($SHQUERYRBINFO))

If DllStructGetData($SHQUERYRBINFO, 3) <> 0 Then
    FileRecycleEmpty()
EndIf

Here's the code by the way :P

Link to comment
Share on other sites

5 minutes ago, Dgameman1 said:
Global $SHQUERYRBINFO = DllStructCreate("align 1;int;int64;int64") ; v3.2.11.3

DllStructSetData($SHQUERYRBINFO, 1, DllStructGetSize($SHQUERYRBINFO))

$Query = DllCall("shell32.dll", "int", "SHQueryRecycleBin", "str", "C:\", "ptr", DllStructGetPtr($SHQUERYRBINFO))

If DllStructGetData($SHQUERYRBINFO, 3) <> 0 Then
    FileRecycleEmpty()
EndIf

Here's the code by the way :P

Thank you :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...