Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of My Pictures

Tags:

How do I programatically (Using C#) find out what the path is of my My Pictures folder?

Does this work on XP and Vista?

like image 613
rudigrobler Avatar asked Sep 22 '08 16:09

rudigrobler


2 Answers

The following will return a full-path to the location of the users picture folder (Username\My Documents\My Pictures on XP, Username\Pictures on Vista)

Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); 
like image 87
Andrew Grant Avatar answered Nov 02 '22 11:11

Andrew Grant


Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);

like image 31
neuroguy123 Avatar answered Nov 02 '22 11:11

neuroguy123