Jump to content

Recommended Posts

Posted

Vê se isto te pode ajudar

Imports System.IO

' algures...
Dim di() As DriveInfo = DriveInfo.GetDrives()

For Each drive In di
   If drive.DriveType = DriveType.NoRootDirectory Then
       ' qualquer coisa...
   End If
Next

Knowledge is free!

Posted

Se o Windows não lhe atribuí uma letra é porque não é primáriamente reconhecido como dispositivo de armazenamento.

Se isso não acontece ao nível do sistema operativo, a .NET não vai jogar as cartas do tarot 🙂

O mais certo é precisares de um driver para que o SO reconheça isso como dispositivo de armazenamento (se o for), ou qualquer outra coisa mais genérica.

Só aí é que podes começar a pensar em .NET.

Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.