Re: [python-win32] Try to got short path for files - but goterror...

2006-05-24 Thread Mark Hammond
> Mark, > Do you know if it's possible to get all the usual "right-click" > file properties using win32com or ctypes? I know Windows presents short > names via properties, but wasn't sure that's exposed via either. I > googled this but didn't see a clear direction after the first 50 hits. >

Re: [python-win32] Try to got short path for files - but goterror...

2006-05-24 Thread Metz, Bobby W, WWCS
FYI, looking around a bit on Google it appears this question has been posted before without a clear answer...in fact, lots of places without clear answers. One guy went so far as to "cheat" as he put and used WSH. But that's not much better than my "cheat". So, aside from Mark's short co

Re: [python-win32] Try to got short path for files - but got error...

2006-05-24 Thread Mark Hammond
I'm afraid your message isn't very clear. You should try and copy the smallest possible code that demonstrates your problem, exactly as Bobby did in his reply. > > I got errors with unicode file names. See my unicode test file name: >UFN=u'%s\\xA\xff'%os.getcwd() Is that what you mean? You

Re: [python-win32] Try to got short path for files - but got error...

2006-05-24 Thread Metz, Bobby W, WWCS
Why the insistence on short file names? Did you try encapsulating your filenames in quotes when passing to FSUM? C:\speedtest\fsum.exe -sha1 -D"C:\SPEEDTEST" "this is my test file" Another workaround to try if GetShortPathNameW() is truly not available would be to use "dir". This is kludgy b

[python-win32] Try to got short path for files - but got error...

2006-05-24 Thread DurumDara
Hi ! I wrote to Python list, but nobody answer to my problem. I copy these mails to this body. So: I need to optimize my disk hasher code. I need to make quick code, and I see that FSUM make better speed than python sha/md5 with py2exe. But I need to "transport" filenames to FSUM. I got errors