Empty recycle bin

K

kcwong

Anyone know how you empty the recycle bin in Java under Vista?

JNI? I found some code in VB which clears the recycle bin
programmatically... but those are quite old, uses undocumented
features, and requires ActiveDesktop to be installed.

But even if those works, you still need to handle the new security in
Vista. Deleting items with some attributes require the program to
elevate.
 
J

JT

Roedy said:
Anyone know how you empty the recycle bin in Java under Vista?
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
If you are running Vista, could you not put a *nix shell like Interix on
it and run your Java programs on that layer. From there, it should be
easy to execute a ksh command like "rm -f /dev/fs/C/..../recyclebin"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top