LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get VolumeType

Solved!
Go to solution

I'm trying to obtain the VolumeType of the diferent drives in my computer using Labview 8.6.1.

 

I have found that windows stores this info in a Class named DriveInfo: http://msdn.microsoft.com/en-us/library/hkk68fty.aspx

From this class can be obtained the property VolumeType: http://msdn.microsoft.com/en-us/library/system.io.driveinfo.drivetype.aspx

 

Is there any solution to obtain the same information in Labview? If not what can I do?

 

Thank you very much.

 

David

0 Kudos
Message 1 of 3
(2,323 Views)
Solution
Accepted by DavidFG

An operation like that would require some sort of OS call. You could just call the .NET code directly, as shown in the attachment. The return value is an integer, but you can easily create a typedef enum that has the same enumerations as the DriveType enumeration.

0 Kudos
Message 2 of 3
(2,312 Views)

Thank you very much again.

 

David

0 Kudos
Message 3 of 3
(2,305 Views)