PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ How to change the directory where the temp file is stored Re: Re: How to change the directory where the temp file is stored

#27929

Java API offers an alternative method to create tmp file, which allows to specify tmp/ directory location:

createTempFile(String prefix, String suffix, File directory)

A call of the method may look like that:

File file = File.createTempFile(“attachment”, “.” + fileName, new File(“e:\another\temp”));