Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Empty recycle bin

Thread view: 
Roedy Green - 30 May 2007 10:10 GMT
Anyone know how you empty the recycle bin in Java under Vista?
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
kcwong - 30 May 2007 11:00 GMT
> 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.
Stefan Ram - 30 May 2007 13:06 GMT
>Anyone know how you empty the recycle bin in Java under Vista?

 See also:

http://groups.msn.com/windowsscript/wshgeneralquestions.msnw?row=16&viewtype=2

 Even using wsh, this is difficult, because the actual verb
 ("&Papierkorb leeren", "&Delete") is localized and even under
 Windows 98 it might enforce user confirmation.
JT - 31 May 2007 02:49 GMT
> 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"


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.