FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Saber que tipo de Drive es con un TDriveComboBox
Hola, mi pregunta es como saber si el drive seleccionado en el DrivecomboBox es una unidad de Cd o un disco extrible.
que valor retorna o que propiedad uso para saber esto. Gracias |
#2
|
|||
|
|||
Utiliza la funcion GetDriveType, debes incluir la ShellApi.
Ejemplo:
Saludos desde Concepcion-Chile |
#3
|
||||
|
||||
La API GetDriveType se maneja así: (Ayuda de Builder)
Cita:
Saludos. |
#4
|
||||
|
||||
Ok gracias a los dos, voy a probar.
|
#5
|
||||
|
||||
hey? la manera de usarlo seria asi:
ya tengo un DriveComboBox llamado D_Drive; seria aglo asi: AnsiString x = D_Drive->Drive; if( ( GetDriveType( (x + "://").c_str() ) != DRIVE_CDROM ) { ... } asi lo puedo usar? para la memoria usb se usa el de: DRIVE_REMOVABLE? gracias |
#7
|
||||
|
||||
Gracias
si ya lo entendi, muchas gracias por la ayuda; lo que pasa es que tretorna un entero por cada uno de los valores que me diste:
0 The drive type cannot be determined. 1 The root directory does not exist. 2 : DRIVE_REMOVABLE The drive can be removed from the drive. 3 : DRIVE_FIXED The disk cannot be removed from the drive. 4 : DRIVE_REMOTE The drive is a remote (network) drive. 5 : DRIVE_CDROM The drive is a CD-ROM drive. 6 : DRIVE_RAMDISK The drive is a RAM disk. muchas gracias fue muy utli. saludos desde Colombia Última edición por Negriz fecha: 31-03-2008 a las 22:07:38. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Saber el tipo de disco | MON___ | API de Windows | 1 | 27-12-2007 23:21:12 |
se puede saber el tipo de un field de mysql | seba_cipo | MySQL | 2 | 12-05-2006 14:36:15 |
como saber el tipo de datos de un campo | miguelml | Varios | 4 | 17-11-2005 08:36:17 |
Saber el tipo de acceso a ficheros compartidos | Javi2 | Varios | 0 | 18-08-2004 11:14:35 |
Como saber el tipo de acceso a una carpeta | Javi2 | Varios | 3 | 22-07-2004 11:56:44 |
|