-
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)
[email protected]
-
You could always use the Sendkeys() function.
------------------
"To the glory of God!"
-
And if you use
FOF_ALLOWUNDO Or FOF_NOCONFIRMATION
as flags? Should work I think...
-
Thank you Crazy D
The OR statement worked perfekt :)
------------------
On Error Goto Bed :0)
[email protected]