Results 1 to 4 of 4

Thread: Recycle bin

  1. #1

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    Has anybody used this tip
    http://www.vb-world.net/tips/tip48.html
    to move files to the recycle bin instead of using the Kill statement?

    It works fine for me with one exeption. I allways get the dialogbox asking " do you really wanna move this file to the trashcan?", I would like my program move the file without that question.

    The flags that I use is
    Const FOF_ALLOWUNDO = &H40
    Const FOF_NOCONFIRMATION = &H10 'Don't prompt the user.

    With FOF_ALLOWUNDO the dialogbox appears and
    with FOF_NOCONFIRMATION the file is removed compleately, its not sent to the trashcan.

    I need it to be move to the trashcan without the dialogbox.

    Does anyone know how to accomplish this?


    ------------------
    On Error Goto Bed :0)
    anders@zsystemdesign.se



  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    You could always use the Sendkeys() function.

    ------------------
    "To the glory of God!"


  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    And if you use
    FOF_ALLOWUNDO Or FOF_NOCONFIRMATION
    as flags? Should work I think...

  4. #4

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    Thank you Crazy D
    The OR statement worked perfekt



    ------------------
    On Error Goto Bed :0)
    anders@zsystemdesign.se



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