Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

My.Computer.FileSystem.SpecialDirectories.Programs Property

Gets a path name pointing to the Programs directory.

' Usage
Dim value As String = My.Computer.FileSystem.SpecialDirectories.Programs
' Declaration
Public ReadOnly Property Programs As String

The following conditions may cause an exception:

The My.Computer.FileSystem.SpecialDirectories Object contains paths to commonly referenced directories. The Programs directory contains the user's program groups.

This example displays the path for the Programs directory in a MessageBox.

MsgBox(My.Computer.FileSystem.SpecialDirectories.Programs)

Namespace: Microsoft.VisualBasic.MyServices

Class: SpecialDirectoriesProxy (provides access to SpecialDirectories)

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

The following permission is required:

Permission

Description

FileIOPermission

Controls the ability to access files and folders. Associated enumeration: Unrestricted.

For more information, see Code Access Security and Requesting Permissions.

Community Additions

ADD
Show:
© 2015 Microsoft