Get files under My.Computer.FileSystem.SpecialDirectories.MyDocuments : SpecialDirectories « Stream File « VB.Net Tutorial





Option Strict On

Imports System.IO

Public Module FileSystemAttributes
   Public Sub Main()
      Dim docPath As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments

      For Each fn As String In My.Computer.FileSystem.GetFiles(docPath)
         Dim fi As FileInfo = New FileInfo(fn)
         Console.WriteLine("{0}: {1}", fi.Name, fi.Attributes.ToString())
      Next
   End Sub
End Module
Default.rdp: Hidden, Archive
desktop.ini: Hidden, System, Archive










13.14.SpecialDirectories
13.14.1.My.Computer.FileSystem.SpecialDirectories.AllUsersApplicationData
13.14.2.My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
13.14.3.My.Computer.FileSystem.SpecialDirectories.Desktop
13.14.4.Get files under My.Computer.FileSystem.SpecialDirectories.MyDocuments
13.14.5.My.Computer.FileSystem.SpecialDirectories.MyDocuments
13.14.6.My.Computer.FileSystem.SpecialDirectories.MyMusic
13.14.7.My.Computer.FileSystem.SpecialDirectories.MyPictures
13.14.8.My.Computer.FileSystem.SpecialDirectories.Programs
13.14.9.My.Computer.FileSystem.SpecialDirectories.Temp