// FileName (string) = c:\windows\notepad.exe // path (string) = c:\windows\ path := ExtractFilePath(FileName);