Hi Greg,
if you type set at the command line what value do you get returned for
the env variable "temp" ?
 
It may be set to the 8.3 format , particularly if someone had to
manually set it to be this value. I have had to do this previously where
installation kits could not work off the "c:\documents and setting\.."
setting for %temp% due to not dealing correctly with the spaces in the
returned text.
 
Hope this helps...
 
Regards,
Conor Lillis
---------------------------------------
Senior Systems Administrator,
Group Network Services,
tel : +353-1-616-2540
 
Anglo Irish Bank
www.angloirishbank.ie <http://www.angloirishbank.ie/> 
---------------------------------------
 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
Tobias Hoellrich
Sent: 14 April 2009 00:50
To: [email protected]
Cc: [email protected]
Subject: RE: $ENV{'temp'} returns result in dos 8.3 format



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: [email protected]
[mailto:[email protected]] On Behalf Of
Greg Aiken
Sent: Monday, April 13, 2009 5:33 PM
To: [email protected]
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



**********************************************************************
Private, Confidential and Privileged. This e-mail and any files and attachments 
transmitted with it are confidential and/or privileged. They are intended 
solely for the use of the intended recipient. The content of this e-mail and 
any file or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended recipient, 
please note that any review, dissemination, disclosure, alteration, printing, 
circulation or transmission of this e-mail and/or any file or attachment 
transmitted with it, is prohibited and may be unlawful. If you have received 
this e-mail or any file or attachment transmitted with it in error please 
notify Anglo Irish Bank Corporation Limited, Stephen Court, 18/21 St Stephen's 
Green, Dublin 2, Ireland, telephone no: +353-1-6162000. 
Directors: D O'Connor (Chairman), F Daly, A Dukes, M Keane, D Quilligan.
Registered Office: Stephen Court, 18/21 St Stephen's Green, Dublin 2 Ireland
Registered in Ireland: No 22045
Anglo Irish Bank Corporation Limited is regulated by the Financial Regulator. 
Anglo Irish Bank Corporation Limited (trading as Anglo Irish Bank Private 
Banking) is regulated by the Financial Regulator. Anglo Irish Assurance Company 
Limited is regulated by the Financial Regulator. 
**********************************************************************

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to