Amazingly, the name of that win32 module is:  Win32 !

I still have a mystery however.  When I run the following command:

perl -e "print '*:'.Win32::GetLongPathName( my
$p=Win32::GetFullPathName(qq(/PROGRA~1))).';;;';"

Then I get the expected output, which is something like:
*:C:\Program Files;;;

However, If I remove the "my $p=" from the above command, that is:
perl -e "print '*:'.Win32::GetLongPathName(
Win32::GetFullPathName(qq(/PROGRA~1))).';;;';"

Then I get a syntax error.  The message is: "usage:
Win32::GetLongPathName($pathname) at -e line 1.".  I don't see why I am
getting the error, and I'd rather not define the dummy variable $p.  Can
anyone explain why I am getting this error?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 10:54 PM
To: Coonfield, Ben CONT
Subject: Re: Converting short file name to full path

you probably can't - unless its those you can guess ahead of time, like
progra~1/program files.  But the OS can and there is a win32 module that
does that, alas, I don't know the name of it.  I'd search active state (or
just google, it covers everybody ;-) for File::Glob win32 etc.   Guess this
is just a heads up that there is a module out there.
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to