表紙 > VB6 サンプル >

VB6

ドライブのボリュームラベルを取得する

 

VB6対応 VB.NET2002対応 VB.NET2003対応 VB2005対応

Dim VolumeLabel As String

VolumeLabel = Dir("C:\", vbVolume)

MsgBox VolumeLabel