Home > Uncategorized > Getting A List of All Special Directories in VB.NET

Getting A List of All Special Directories in VB.NET

Code below is just a quick blurb on how to get a list of all the Special Directories in VB.NET:

Module SpecialFolderAccess

Sub Main()

For Each tVar As Environment.SpecialFolder In [Enum].GetValues(GetType(Environment.SpecialFolder))
Console.WriteLine(Environment.GetFolderPath(tVar))
Next

Console.ReadKey()

End Sub

End Module

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: