简体   繁体   中英

How do I get full Win32 path from 8.3 DOS path with Perl?

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!

您可以使用Win32模块中的Win32::GetLongPathName($path)

Win32::GetLongPathName()就是您所需要的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM