46. Special Folders

In this tutorial, we cover using the special folders to retireve the path of a special folder on a machine.

Code

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim thepath As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

        Process.Start(thepath & "\image.jpg")
    End Sub

End Class