Link to home
Start Free TrialLog in
Avatar of Allan_Fernandes
Allan_Fernandes

asked on

Full Path of Windows Temp folder

How to get windows temp folder without truncation of folder name?
All solutions give C:\Docume~1\....
whereas I want it as C:\Documents and Settings\...

Removed the "TCP / IP" Zone, as it has nothing to do with the Q.

rindi,
EE ZA Storage

Open in new window

Avatar of Dr. Klahn
Dr. Klahn

This can be found in the registry key:

HKEY_CURRENT_USER/Environment/TEMP

It is of type REG_EXPAND_SZ.
Or %TEMP% is usually environment variable..
%TEMP% and %TMP% both give windows short names and NOT the full path as requested.
Here is an example of how to do it via VB6. you should be able to adapt the info on using the Kernel32 API's
It will NORMALLY be %USERPROFILE%\Local Settings\Temp

you can do that in a cmd prompt to expand

c:\> ECHO %USERPROFILE%\Local Settings\Temp
ASKER CERTIFIED SOLUTION
Avatar of Allan_Fernandes
Allan_Fernandes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Allan_Fernandes

ASKER

Thanks