On Tue, Apr 14, 2009 at 6:39 AM, Conor Lillis <conorlil...@angloirishbank.ie> wrote: > 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 [ ... ] > --------------------------------------- > > ________________________________ > From: perl-win32-users-boun...@listserv.activestate.com > [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of > Tobias Hoellrich > Sent: 14 April 2009 00:50 > To: gai...@visioninfosoft.com > Cc: perl-win32-users@listserv.activestate.com > 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.
Perhaps Win32::GetLongPathName would do what you want: my $tmp_short = $ENV{TMP}; print $tmp_short, $/; my $tmp_long = Win32::GetLongPathName($tmp_short); print $tmp_long, $/; prints out C:\DOCUME~1\Kobes-R\LOCALS~1\Temp C:\Documents and Settings\Kobes-R\Local Settings\Temp -- best regards, Randy _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs