Hola amigos,
Necesitaría alguna rutina para saber si el PC tiene o no unidad A.
Todo lo que he probado me dice si tengo o no disco en la unidad y, por tanto, el no tener disco es equivalente a no tener unidad, que no es lo que yo necesito.
Lo he probado con dirchange(), diskspace() e incluso directory()
Gracias por vuestra ayuda
Como saber si existe la unidad A
- karinha
- Posts: 7932
- Joined: Tue Dec 20, 2005 7:36 pm
- Location: São Paulo - Brasil
- Been thanked: 3 times
- Contact:
// FiveWin new nSerialHD() number to check a HardDisk serial number
//----------------------------------------------------------------------------//
function Main()
MsgInfo( nSerialHD() ) // Check default drive
MsgInfo( nSerialHD( "C:" ) ) // Serial number on HardDisk
MsgInfo( nSerialHD( "D:" ) )
MsgInfo( nSerialHD( "A:" ) )
if IsDiskette()
MsgInfo( nSerialA() ) // Serial number on drive A
endif
return nil
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
function Main()
MsgInfo( nSerialHD() ) // Check default drive
MsgInfo( nSerialHD( "C:" ) ) // Serial number on HardDisk
MsgInfo( nSerialHD( "D:" ) )
MsgInfo( nSerialHD( "A:" ) )
if IsDiskette()
MsgInfo( nSerialA() ) // Serial number on drive A
endif
return nil
//----------------------------------------------------------------------------//
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341