tags:

views:

41

answers:

1

I'm not experiences with Windows API at all, so please excuse my ignorance.

I want to delete files to the trash. How to do that using JNA and how to detect if this would not be possible, e.g., because the files are located on a network share?

+1  A: 

Use com.sun.jna.platform.win32.FileUtils.moveToTrash and hasTrash.

dblock