Ver Mensaje Individual
  #2  
Antiguo 27-03-2008
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 947
Reputación: 25
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Utiliza la funcion GetDriveType, debes incluir la ShellApi.

Ejemplo:

Código Delphi [-]
Var
DType: Integer;
s:String;
disco:string;
Begin
       disco:='C:\';
       DType:=GetDriveType(PChar(disco));
       case (DType) Of
             0  :s:='No puede ser determinado'
             1  :s:='No existe'
             DRIVE_REMOVABLE:s:='Removible'
             DRIVE_FIXED    :s:='Disco no removible';drive.
             DRIVE_REMOTE    :s:='Disco de red';
             DRIVE_CDROM    :s:='CD-ROM';
             DRIVE_RAMDISK  :s:='Ram disk'
       end;
       showmessage(s);
end;

Saludos desde
Concepcion-Chile
Responder Con Cita