I find that on
my new machine which runs Windows 2000, that 'ExtractShortPathName' returns
an empty string. The function is a thin wrapper to the Windows API call
'GetShortPathName' - and MS claim that it works under Win NT/Win2K.
I haven't tried
it on a Win9x machine yet, but I am pretty sure it used to
work.
Has MS got it wrong,
or am I missing something?
var
s : string;
begin
s := 'C:\Program Files\foobar.txt';
s := ExtractShortPathName(s);
edit1.Text := s; // s = '' !
s := ExtractShortPathName(s);
edit1.Text := s; // s = '' !
end;
BTW - machine came with the 18Gb drive setup as one FAT32
partition - strange that it was not setup by Compaq to run NTFS...
(Not actually
offtopic, but I don't get delphi mail-list
here)
Grant Black
Software Designer
Information Tools Ltd
Phone DDI +64 9 488-4593
Software Designer
Information Tools Ltd
Phone DDI +64 9 488-4593
Email: [EMAIL PROTECTED]
