Take a look at "perldoc Win32" and specifically Win32::GetFullPathName. No idea 
if it'll help in your case, but it's worth a try.

Cheers - T

From: perl-win32-users-boun...@listserv.activestate.com 
[mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg 
Aiken
Sent: Monday, April 13, 2009 5:33 PM
To: perl-win32-users@listserv.activestate.com
Subject: $ENV{'temp'} returns result in dos 8.3 format

$eight_dot_three = $ENV{'temp'};  #on my system return value is 8.3 truncated 
directory paths

question 1:

is there some setting in the registry that controls how env var paths are to be 
stored and returned?  specifically in the old 8.3 truncated ~ version, or the 
newer win32 full paths?  if I can fix this by making a system wide change, this 
would be preferred...

question 2:

if there is not a setting in the registry that controls this behavior (or if no 
one is able to direct me to the proper registry based answer).  is there some 
alternative Perl way to convert the 8.3 path to the full non truncated path 
value...  as in

$full_nontruncated_path = &magical_function($eight_dot_three);

thanks for your insights...

greg
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to