Accessing Special Folders
Use this board to post your code snippets - tips and tricks
1 post
Page 1 of 1
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:
------------------------------------------------------------------------------------------
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
------------------------------------------------------------------------------------------
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
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023