|
-
Jan 3rd, 2000, 06:48 PM
#1
Thread Starter
Hyperactive Member
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]
-
Jan 3rd, 2000, 08:19 PM
#2
Addicted Member
You could always use the Sendkeys() function.
------------------
"To the glory of God!"
-
Jan 3rd, 2000, 08:29 PM
#3
Hyperactive Member
And if you use
FOF_ALLOWUNDO Or FOF_NOCONFIRMATION
as flags? Should work I think...
-
Jan 3rd, 2000, 08:42 PM
#4
Thread Starter
Hyperactive Member
Thank you Crazy D
The OR statement worked perfekt
------------------
On Error Goto Bed :0)
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|