Lolalola 0 Junior Poster in Training

Hi,

ManagementObject disk = new ManagementObject("Win32_LogicalDisk.DeviceID=\"" + drive + ":\"");
            disk.Get();

            info = disk["VolumeSerialNumber"].ToString();

Is a good solution to use to identify USB Flash?
I want to know whether these USB Flash has been connected to the computer.

Is it really shows USB Flash individual number? Is this number may not have one?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.