Provides properties for accessing commonly referenced directories.
If the path for the referenced directory is empty, usually due to the operating system not supporting the directory, a DirectoryNotFoundException exception is thrown.
No backslash (\) appears at the end of the path.
The following table lists examples of tasks involving the My.Computer.FileSystem.SpecialDirectories object.
This example returns the filePath for the user's Desktop directory and displays it.
Dim filePath As String
filePath = My.Computer.FileSystem.SpecialDirectories.Desktop
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback