
600
|
Chapter 13: The ‘My’ Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Related Framework Entries
• Microsoft.VisualBasic.ApplicationServices.AssemblyInfo.ProductName Property
• System.Diagnostics.FileVersionInfo.ProductName Property
See Also
CompanyName Property, Copyright Property, Description Property, Info Object (My.
Application), Title Property, Trademark Property
ProgramFiles Property
Location
My.Computer.FileSystem.SpecialDirectories.ProgramFiles
Syntax
Dim result As String = My.Computer.FileSystem. _
SpecialDirectories.ProgramFiles
Description
The ProgramFiles property returns the full path name to the “Program Files” folder for
the local workstation. Usually, this directory is found at C:\Program Files, but it may
vary from system to system.
Usage at a Glance
• This property is read-only.
• This folder contains application files for installed programs.
• This path may not be defined in some cases. In such cases, use of this property
generates an exception.
• The returned path will never have a backslash “\” character at the end.
Related Framework Entries
• Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy.ProgramFiles Property
• Microsoft.VisualBasic.FileIO.SpecialDirectories.ProgramFiles Property
See Also
AllUsersApplicationData Property, CurrentUserApplicationData Property, Desktop
Property, MyDocuments Property, ...