I\'m writing a program that needs a generic temp folder. I\'m trying to find details about the Windows Temp folders. There are two paths that I know about -
use this code
try { String s=File.createTempFile("temp-file", "tmp").getParent(); System.out.println(s); } catch (IOException ex) { Logger. getLogger(Result.class.getName()).log(Level.SEVERE, null, ex); }