function FindTheLastExistsDrive: string;
var
i: Char;
begin
Result := '';
for i := 'z' downto 'a' do
if DirectoryExists(i + ':/') then
begin
Result := i + ':/';
Break;
end;
end;
function GetLastDrives: string;
var
drive:char;
begin
for drive:='Z' Downto 'A' do
if GetDriveType(pchar(Drive+':/'))=DRIVE_FIXED then
begin
result:=drive;
break;
end;
end;