471,071 Members | 8,731 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Win32: shortpathname to longpathname

I wrap my cross platform application up with py2exe on Windows, and
have the installer associate a particular file type with it. When a
user double clicks on a document to launch my application, Windows
appears to pass me the "short" Windows pathname. How can I convert to
the long version of the pathname? (Ideally using the standard library
rather than win32all AKA pywin32.)

May 9 '07 #1
1 1176
En Tue, 08 May 2007 21:04:50 -0300, Jim Tittsler <jt*******@gmail.com>
escribió:
I wrap my cross platform application up with py2exe on Windows, and
have the installer associate a particular file type with it. When a
user double clicks on a document to launch my application, Windows
appears to pass me the "short" Windows pathname. How can I convert to
the long version of the pathname? (Ideally using the standard library
rather than win32all AKA pywin32.)
You want GetLongPathName:
http://msdn2.microsoft.com/en-us/library/aa364980.aspx
It's not directly available on the standard library; you can either use
win32api.GetLongPathName or call it using ctypes.

--
Gabriel Genellina

May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Scaramouche | last post: by
1 post views Thread by RL | last post: by
5 posts views Thread by Chi Tang | last post: by
5 posts views Thread by Bryan Parkoff | last post: by
6 posts views Thread by Pawel | last post: by
8 posts views Thread by Tony Johansson | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.