On Wed, 07 Mar 2007, Roode, Eric wrote:
> Steve Stewart wrote:
>
> > Just a thought, why not use the short names for the directories i.e.
> Program Files = Progra~1, New Folder = newfol~1 ect you can list them
> using cmd dir /x this should solve it unless it is actually the share
> names that are causing the problem, in which case you can either
> rename the share or use the admin shrare C$, D$ and so on of course
> you need to have admin access to do this
>
> In my case, I'm taking the input from the user, and I can't reasonably
> ask them to do a dir/x first. :-)

But you can always call Win32::GetShortPathName() yourself:

  C:\usr\bin>perl -we "print Win32::GetShortPathName('\\\\zoom\my\New Folder')"
  \\zoom\my\NEWFOL~1

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to