Delete file in java -


i want delete file on windows os using java, how ever time file may in use external process, how can delete forcefully or knowing process use , kill process or how, code or way?

you can call low level windows routines via jni (http://www.atwistedweb.com/java/jni.html) or jna (http://jna.java.net/)

but how more simple solution: download unlocker , run processbuilder.


Comments