Programación General > Visual Basic 6.0 e inferiores

 Unidad De Cd/dvd

(1/1)

Sagutxo:
Salu2.

   Existe alguna manera de saber cual es la letra que utiliza el CD/DVD?
Gracias.
 :smartass:  :comp:  :smartass:

Sagutxo:
Salu2. Ya lo he encontrado gracias. :)  :comp:  :smartass:  :comp:

firme:
CUAL ES AH?

Sagutxo:
Salu2, perdón por la tardanza  :unsure: .
Aquí te dejo un ejemplo cogido de las ApiGuide


--- Código: Text ---Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long Private Sub Form_Load()    'KPD-Team 1998    'URL: http://www.allapi.net/    'E-Mail: KPDTeam@Allapi.net    'Set the graphic mode to persistent    Me.AutoRedraw = True    'Get information about the C:\    Select Case GetDriveType("C:\")        Case 2            Me.Print "Removable"        Case 3            Me.Print "Drive Fixed"        Case Is = 4            Me.Print "Remote"        Case Is = 5            Me.Print "Cd-Rom"        Case Is = 6            Me.Print "Ram disk"        Case Else            Me.Print "Unrecognized"    End SelectEnd Sub Espero que te sirva.

 :comp:  :smartass:  :comp:

Navegación

[0] Índice de Mensajes

Ir a la versión completa