Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, June 2007
Long file path to short file path QT API?


Message 1 in thread

Hi All.

I am new to QT and I am wondering whether is there a QT API that allows 
me to convert a file path given in a long path name to a short path 
name? By the looks of it, there is not any or I have overlooked somewhere.

For example, I need to make
"c:\program files\alongdirectory\alongfilename.exe" to
"c:\progra~1\alongd~2\alongf~1.exe"

Thank you.
J.

--
 [ signature omitted ] 

Message 2 in thread

Jason M. schrieb:
> Hi All.
> ...
> For example, I need to make
> "c:\program files\alongdirectory\alongfilename.exe" to
> "c:\progra~1\alongd~2\alongf~1.exe"

Without looking at the Qt API: I don't think that there exists such a 
functionality, since this is platform-dependent.

I know that Qt supports platform-dependent functionality (such as 
ActiveQt), but I don't believe it supports knickknack such as shortening 
a path ;) Use the Win32 API for that directly (I'm sure there exists 
such a function which does that).

Cheers, Oliver

--
 [ signature omitted ]