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

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net Tutorial » Stream File » SpecialDirectories 
13.14.4.Get files under My.Computer.FileSystem.SpecialDirectories.MyDocuments
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.