PDA

Click to See Complete Forum and Search --> : GetTmpPath


fmnunes
May 22nd, 2000, 05:02 AM
Hi

Where is more convenient to use these API in a form ?
By a click or load?

When i run an apllication where goes temporary files? Did they go automatically to temp directory?


Thanks in advance

Chris
May 25th, 2000, 12:34 AM
I think so, If you really need to get the temp files then you need to used the GetTempFile API function to locate the Windows Temporary Directory as below:


Dim strTemp As String
strTemp = String(100, Chr$(0))
GetTempPath 100, strTemp
strTemp = Left$(strTemp, InStr(strTemp, Chr$(0)) - 1)
MsgBox "Windows Temp Directory is " & strTemp


:)