By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Win32: shortpathname to longpathname

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.