Probably the easiest way for you to get the Windows Temp directory is to access the Windows Script Host Model using OLE Automation. I've got a vi that does that, in several Labview versions (5.0, 6.0.2 and 6.1). I have also included a vi that accesses the Windows API to get various other important and hard to get folder paths, like the Desktop folder, My Documents folder, etc. These are folders whose location can change from Operating System to Operating System or even from PC to PC (as for example, if you replace your existing Windows 98 system, the new Windows folder may be "C:\Win98" instead of "C:\Windows", which can screw up all the other hard coded locations you've got in your code.)