Accessing Special Folders

Use this board to post your code snippets - tips and tricks
1 post Page 1 of 1
Contributors
User avatar
II Killick8 II
Just Registered
Just Registered
Posts: 3
Joined: Sun May 22, 2011 1:43 pm

Accessing Special Folders
II Killick8 II
Hello! In this tutorial I am going to show you how to access special folders :)
------------------------------------------------------------------------------------------
To get the path of a special folder(like AppData & Program Files & Desktop) just type:
Code: Select all
Environment.GetFolderPath(Environment.SpecialFolder.here goes the folder)

------------------------------------------------------------------------------------------
So now replace the text "here goes the folder" above with:
MyDocuments - For My Documents
Desktop - For Desktop
ProgramFiles - For Program Files

You can use Intellisense to help you find out more
------------------------------------------------------------------------------------------
Hope you found this helpful :D
1 post Page 1 of 1
Return to “Quick Snips”