I was reminded of a project I mean to go back to soon and thought of a problem I had. One of the things I was wanting to do was get a short file name off of a long file name. Is that a possible thing under Windows XP? (I knew it was under 95/98/ME) I tried accessing cAlternateFileName of TWin32FindData off of FindFirst/FindNext, and wasn't able to get a short file name.
So is there a function in Delphi/Windows that will return a short file name given a long one under any conditions? I was looking and found KB142982. In the case of Windows XP, would it be required to write something compliant to this KB article to get this done? Or is there something within Rewrite that would allow the creation of the short name file given the long file name?
(If you're curious the project involved writing a data file to be read by an app that only accepts 8.3 file names. An alternative, maybe my own proprietary name scheme?)
So is there a function in Delphi/Windows that will return a short file name given a long one under any conditions? I was looking and found KB142982. In the case of Windows XP, would it be required to write something compliant to this KB article to get this done? Or is there something within Rewrite that would allow the creation of the short name file given the long file name?
(If you're curious the project involved writing a data file to be read by an app that only accepts 8.3 file names. An alternative, maybe my own proprietary name scheme?)