Is it possible with Java to delete to the Recycle Bin?

前端 未结 9 1928
夕颜
夕颜 2020-12-13 18:12

Java is the key here. I need to be able to delete files but users expect to be able to \"undelete\" from the recycle bin. As far as I can tell this isn\'t

9条回答
  •  被撕碎了的回忆
    2020-12-13 18:53

    As John Topley suggests, you must do this with a native operation. In case you don't want to get your hands dirty with some JNI, you could use a library called Java Native Access to do the native calls.

提交回复
热议问题