M
Martin B.
Hello.
*** Is there a setting that tells Windows how/if/when it should expand
environment variables to long vs. short pathnames? ***
I have two Windows XP boxes. (german, service pack 2)
On both machines the settings for the environment variable %TEMP% are
the same, that is:
HKEY_CURRENT_USER\Environment -
TEMP [REG_EXPAND_SZ] = %USERPROFILE%\Lokale Einstellungen\Temp
One one box resolving %TEMP% will yield the short pathname and on the
other box I'll get the long pathname. (Note that %USERPROFILE% will
yield the long path on both boxes
PC1:
C:\>echo %USERPROFILE%
C:\Dokumente und Einstellungen\Trappel
C:\>echo %TEMP%
C:\DOKUME~1\Trappel\LOKALE~1\Temp
PC2:
C:\>echo %USERPROFILE%
C:\Dokumente und Einstellungen\hammer
C:\>echo %TEMP%
C:\Dokumente und Einstellungen\hammer\Lokale Einstellungen\Temp
C:\>cd C:\DOKUME~1
C:\DOKUME~1> REM ... note here that the short pathname does exists
Opening %TEMP% via Start > Run ... will yield the same different
pathnames in the title bar of the new explorer windows so I'm *guessing*
it's not a cmd.exe issue but some explorer policy.
*** Does anyone know which setting in windows controls this different
behaviour? ***
Add Info:
---------
Under
"My Computer" -> Properties -> Advanced Tab -> Environment Variables
the following is set:
* System: TEMP = "%SystemRoot%\TEMP" (this appears to be the Windows
default) -- %SystemRoot% expands to C:\WINDOWS
* User: TEMP = "%USERPROFILE%\Lokale Einstellungen\Temp"
cheers,
Martin
*** Is there a setting that tells Windows how/if/when it should expand
environment variables to long vs. short pathnames? ***
I have two Windows XP boxes. (german, service pack 2)
On both machines the settings for the environment variable %TEMP% are
the same, that is:
HKEY_CURRENT_USER\Environment -
TEMP [REG_EXPAND_SZ] = %USERPROFILE%\Lokale Einstellungen\Temp
One one box resolving %TEMP% will yield the short pathname and on the
other box I'll get the long pathname. (Note that %USERPROFILE% will
yield the long path on both boxes
PC1:
C:\>echo %USERPROFILE%
C:\Dokumente und Einstellungen\Trappel
C:\>echo %TEMP%
C:\DOKUME~1\Trappel\LOKALE~1\Temp
PC2:
C:\>echo %USERPROFILE%
C:\Dokumente und Einstellungen\hammer
C:\>echo %TEMP%
C:\Dokumente und Einstellungen\hammer\Lokale Einstellungen\Temp
C:\>cd C:\DOKUME~1
C:\DOKUME~1> REM ... note here that the short pathname does exists
Opening %TEMP% via Start > Run ... will yield the same different
pathnames in the title bar of the new explorer windows so I'm *guessing*
it's not a cmd.exe issue but some explorer policy.
*** Does anyone know which setting in windows controls this different
behaviour? ***
Add Info:
---------
Under
"My Computer" -> Properties -> Advanced Tab -> Environment Variables
the following is set:
* System: TEMP = "%SystemRoot%\TEMP" (this appears to be the Windows
default) -- %SystemRoot% expands to C:\WINDOWS
* User: TEMP = "%USERPROFILE%\Lokale Einstellungen\Temp"
cheers,
Martin