Export (0) Print
Expand All
Expand Minimize

My.Computer.FileSystem.SpecialDirectories Property 

Gets an object that provides properties for accessing commonly referenced directories.


' Usage
Dim value As Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy = My.Computer.FileSystem.SpecialDirectories
' Declaration
Public ReadOnly Property SpecialDirectories As MyServices.SpecialDirectoriesProxy

This property returns the My.Computer.FileSystem.SpecialDirectories Object for the computer.

This property provides easy access to the My.Computer.FileSystem.SpecialDirectories Object.

This example returns the file path for the user's Desktop directory and displays it.

Dim filePath As String
filePath = My.Computer.FileSystem.SpecialDirectories.Desktop
MsgBox(filePath)

Namespace: Microsoft.VisualBasic.MyServices

Class: FileSystemProxy (provides access to FileSystem)

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Availability by Project Type

Project type Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

Yes

Windows Service

Yes

Web Site

Yes

No permissions are required.

Community Additions

ADD
Show:
© 2014 Microsoft