Below is code to get the Long Filename path from a short filename string. function LongPathName(const ShortPathName: string): string; var Retval: DWORD; Buff: array [0..MAX_PATH-1] of Char; begin Retval := GetLongPathName(PChar(ShortPathName), Buff, Length(Buff)); Win32Check(Retval <> 0); Result := Buff; end;
Category: Delphi
uses StrUtils; […] Case IndexStr(‘somename’, [‘bobby’, ‘tommy’, ‘somename’, ‘george’]) of 0: ..code..; // bobby 1: ..code..; // tommy 2: ..code..; // somename -1: ShowMessage(‘Not Present’); // not present…