VB.Net/File Directory/Special Directories

Материал из VB Эксперт
Перейти к: навигация, поиск

Special Directories: All Users Application Data

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
       Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.AllUsersApplicationData)   
   End Sub 
End Class


Special Directories: Current User Application Data

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.CurrentUserApplicationData)
   End Sub 
End Class


Special Directories: MyDocuments

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.MyDocuments)
   End Sub 
End Class


Special Directories: MyMusic

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.MyMusic)
   End Sub 
End Class


Special Directories: MyPictures

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.MyPictures)
   End Sub 
End Class


Special Directories: Programs

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.Programs)
   End Sub 
End Class


Special Directories: Temp

Imports System
Imports System.IO
Public Class MainClass
   Shared Sub Main()
        Console.WriteLine(My.ruputer.FileSystem.SpecialDirectories.Temp)
   End Sub 
End Class