E Eddie Sep 3, 2003 #1 Hi, Anyone know how to get a Drive's Volume Label using vb.net? Thanks in advance. Eddie
H Herfried K. Wagner [MVP] Sep 3, 2003 #2 Hello, Eddie said: Anyone know how to get a Drive's Volume Label using vb.net? Click to expand... \\\ MessageBox.Show(Dir("C:\", FileAttribute.Volume)) /// HTH, Herfried K. Wagner
Hello, Eddie said: Anyone know how to get a Drive's Volume Label using vb.net? Click to expand... \\\ MessageBox.Show(Dir("C:\", FileAttribute.Volume)) /// HTH, Herfried K. Wagner
L Larry Woods Sep 3, 2003 #3 Set a reference to Microsoft Scripting Runtime (COM) Add Imports Script Then: Dim fso as New FileSystemObject Dim drv as Drive drv=fso.GetDrive("C") MessageBox.Show ("Volume: " & drv.VolumeName) HTH, Larry Woods
Set a reference to Microsoft Scripting Runtime (COM) Add Imports Script Then: Dim fso as New FileSystemObject Dim drv as Drive drv=fso.GetDrive("C") MessageBox.Show ("Volume: " & drv.VolumeName) HTH, Larry Woods