{
QFileInfo aFileInfo(theImageFileName);
QString aFormat = aFileInfo.extension(FALSE);
- QString aVTIName = QString("/tmp/") + getenv("USER") + "-" + aFileInfo.baseName(TRUE) + ".vti";
+#ifdef WIN32
+ QString aTmpDir = getenv( "TEMP" );
+#else
+ QString aTmpDir = QString( "/tmp/" ) + getenv("USER");
+#endif
+ QString aVTIName = aTmpDir + "-" + aFileInfo.baseName(TRUE) + ".vti";
QString aCommand = QString( "VISU_img2vti " ) + aFormat + " " + theImageFileName + " " + aVTIName;
if(system( aCommand.latin1() ) == 0)