Board index » delphi » Converting a Win 95/98/NT Long Filename to DOS Filename

Converting a Win 95/98/NT Long Filename to DOS Filename

I am getting an error when trying to change TTable.DatabaseName in Delphi
2.0 that the filename is too long for Paradox 5.0.  Is there a way to
convert it to the shorter version DOS filename?  The filename is being
written to and then read from a text file created during a search of the
network.

Thanks,

Ed Cuthbert
cuthb...@ionia-mi.net

 

Re:Converting a Win 95/98/NT Long Filename to DOS Filename


Quote
In article <7qq1fu$j...@forums.borland.com>, AEA Ed Cuthbert wrote:
> Is there a way to
> convert it to the shorter version DOS filename?

See GetShortPathName in Win32.hlp

 Mike Orriss (TeamB)
 (Unless stated otherwise, my replies relate to Delphi 4.03)
 (Unsolicited e-mail replies will most likely be ignored)

Other Threads