tags:

views:

357

answers:

2

Hi all!

My question basically says it all. I am getting this:

C:\DOCUME~1\frew\MYDOCU~1\Code\AIRCRA~1\lib\ACD\VALIDA~1.PM

and I want this:

C:\Documents and Settings\frew\My Documents\Code\aircraft_ducting\lib\ACD\Validators.pm

I looked at File::Spec::Win32 but that didn't seem to have anything that would do the trick.

Ideas?

Thanks!

+11  A: 

You can use Win32::GetLongPathName($path) from the Win32 module.

Eugene Talagrand
+7  A: 

Win32::GetLongPathName() is all you need.

snowcrash09