File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Is there a way to get the location of the temp directory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is there a way to get the location of the temp directory?" Watch "Is there a way to get the location of the temp directory?" New topic
Author

Is there a way to get the location of the temp directory?

Rob Bass
Ranch Hand

Joined: Aug 28, 2001
Posts: 67
For example if I am on windows it should be something like C:\\TEMP
or if I am on Linux, it should be /tmp
Is there a system call?
Let me know.
Thanks,
Rob
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
System.getProperty("java.io.tmpdir");


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
wood burning stoves
 
subject: Is there a way to get the location of the temp directory?