1) Open the Config.bat and add the below line at "rem Run the configuration tool" section, and enter the desired custom desired path. For example:
-Djava.io.tmpdir="%TSS_HOME%\temp"
or:
-Djava.io.tmpdir="D:\temp"
After the changes, it should resemble something as below:
"%JAVA_HOME%\bin\java" -Xms256m -Xmx1024m -classpath "%CLASSPATH%"
-Dlog.dir="%TSS_HOME%\logs"
-Djava.io.tmpdir="%TSS_HOME%\temp"
-Dlog4j.configurationFile="%TSS_HOME%\spotfire-config\log4j2-tools.xml" com.spotfire.server.config.tool.ConfigApp %*
2) Save the file and execute the command "config export-library-content".
This time it will by default create an AttachmentManager temp file in the \tomcat\temp\ folder.