如何使用Perl从8.3 DOS路径获取完整的Win32路径? [英] How do I get full Win32 path from 8.3 DOS path with Perl?

查看:80
本文介绍了如何使用Perl从8.3 DOS路径获取完整的Win32路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题基本上说明了一切。我得到这个:

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

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

我想要这个: / p>

and I want this:

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

我看着File :: Spec :: Win32,但这似乎并没有

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

想法?

谢谢!

推荐答案

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

这篇关于如何使用Perl从8.3 DOS路径获取完整的Win32路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆