Results 1 to 7 of 7

Thread: RECYCLE BIN Question

  1. #1
    Guest
    Hey all.. well I have been all over the VB forums and file download sites.. There is NO code anywhere that shows the restore, empty, and restore all functions in VB.I need to know how to do these in the Recycling Bin.. Any ideas?


  2. #2
    Member
    Join Date
    Apr 1999
    Location
    Reno, NV
    Posts
    57
    I've seen it. try looking in the API section at this site. It is here some where.

    -William

  3. #3
    New Member
    Join Date
    Jul 2000
    Location
    São Paulo/Brazil
    Posts
    13

    Thumbs up Source Code

    Take a look at http://www.mvps.org/vbnet/code/system/shrecycle.htm.

    I think that this is all that you need.

  4. #4
    Guest
    Try this.

    Code:
    Private Declare Function SHEmptyRecycleBin Lib "shell32.dll" Alias "SHEmptyRecycleBinA" (ByVal hwnd As Long, ByVal pszRootPath As String, ByVal dwFlags As Long) As Long
    
    Private Sub Command1_Click()
    
        'Empty the Recycle Bin
        SHEmptyRecycleBin Me.hwnd, "", 0&
        
    End Sub

  5. #5
    Guest

    Thumbs up

    Thanks fellas.. I'll see if this helps... Thanks again..

    Knight

  6. #6
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Megatron, how would you restore files from a recycle bin?
    Mako Shark
    Great White

  7. #7
    Guest

    Unhappy

    right.. after going through and looking at what was presented, I too have noticed that I can only empty the recycling bin.. I need to be able to restore all and/or restore just one file as well as be able to delete just one file at a time if need be.. I also noticed that it renames the file/folders to something like DC01.tx or jpg or whatever the extension is.. but it renames the main name to it... How do I recall what the REAL name to the file used to be...

    Knight Vision

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width