共用方式為


FileSystem.Dir 方法

傳回的字串表示符合指定模式或檔案屬性的檔案、目錄或資料夾的名稱,也可以是磁碟機的磁碟區標籤。My.Computer.FileSystem 物件 提供比 Dir 函式更強的檔案 I/O 作業產能和效能。如需詳細資訊,請參閱 My.Computer.FileSystem.GetDirectoryInfo 方法

多載清單

名稱 說明
FileSystem.Dir () 傳回的字串表示符合指定模式或檔案屬性的檔案、目錄或資料夾的名稱,也可以是磁碟機的磁碟區標籤。My.Computer.FileSystem 物件 提供比 Dir 函式更強的檔案 I/O 作業產能和效能。如需詳細資訊,請參閱 My.Computer.FileSystem.GetDirectoryInfo 方法
FileSystem.Dir (String, FileAttribute) 傳回的字串表示符合指定模式或檔案屬性的檔案、目錄或資料夾的名稱,也可以是磁碟機的磁碟區標籤。My.Computer.FileSystem 物件 提供比 Dir 函式更強的檔案 I/O 作業產能和效能。如需詳細資訊,請參閱 My.Computer.FileSystem.GetDirectoryInfo 方法

請參閱

參考

FileSystem 類別
FileSystem 成員
Microsoft.VisualBasic 命名空間

其他資源

Dir 函式
ChDir 函式
CurDir 函式
FileAttribute 列舉型別