'利用VB.net內建函數取得可用磁碟清單
'GetDrives
Imports System.IO
Module Module1
     Sub Main()
           Dim drives() as string = Directory.GetLogicalDrives()
           Console.WriteLine("可以使用的磁碟機")
           For Each s As String In drives
               Console.WriteLine(s)
           Next s
     End Sub
End Module
文章標籤
全站熱搜
創作者介紹
創作者 colud77 的頭像
colud77

I-Cloud程式攻略

colud77 發表在 痞客邦 留言(0) 人氣(721)