Python utility convert Windows long file name into 8.3 DOS format

Simon Brunning simon.brunning at gmail.com
Thu Oct 28 06:32:02 EDT 2004


On Thu, 28 Oct 2004 10:55:16 +0200, vincent wehren
<vincent at visualtrans.de> wrote:
> Just note that GetShortPathName expects a valid and accessible path in
> your file system.

Which is just as it should be. Files that don't exist don't *have*
short names. One might be able to put together a function that
*guesses* what short name Windows would be likely to give a new file
with a given long name, but it would be pretty unreliable, I reckon.

-- 
Cheers,
Simon B,
simon.brunning at gmail.com,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list