I was wondering, what's the "proper" (hehe) way to retrieve the system's
temp directory in VB 6.
Like for example, on my Windows XP machine the temp directory that is used
by programs for their temporary files is "C:\Documen ts And
Settings\MyUser Name\Local Settings\Temp". Somehow those programs must look
up that value, and I'd like to do the same for my VB program.
Now I know I can look this up in the registry under
HKEY_CURRENT_US ER\Environment, but I have no way of knowing if this
technique would be specific to WinXP.
Is there a Win32 API call that retrieves the temp folder? Or perhaps a way
of reading the "TMP" or "TEMP" environment variables?
Thanks....
temp directory in VB 6.
Like for example, on my Windows XP machine the temp directory that is used
by programs for their temporary files is "C:\Documen ts And
Settings\MyUser Name\Local Settings\Temp". Somehow those programs must look
up that value, and I'd like to do the same for my VB program.
Now I know I can look this up in the registry under
HKEY_CURRENT_US ER\Environment, but I have no way of knowing if this
technique would be specific to WinXP.
Is there a Win32 API call that retrieves the temp folder? Or perhaps a way
of reading the "TMP" or "TEMP" environment variables?
Thanks....
Comment