PDA

Click to See Complete Forum and Search --> : Recycle bin


onerrorgoto
Jan 3rd, 2000, 05:48 PM
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

vbsquare
Jan 3rd, 2000, 07:19 PM
You could always use the Sendkeys() function.

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

Crazy D
Jan 3rd, 2000, 07:29 PM
And if you use
FOF_ALLOWUNDO Or FOF_NOCONFIRMATION
as flags? Should work I think...

onerrorgoto
Jan 3rd, 2000, 07:42 PM
Thank you Crazy D
The OR statement worked perfekt :)



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