create a My Document Sub Directory
C#
2
Posts
2
Posters
1
Views
1
Watching
-
Is there any way to create a folder like My Pictures and My Music and My Data Sources in My Documents, I mean to have that folder has a special icon not the normal yellow folder icon?
-
Is there any way to create a folder like My Pictures and My Music and My Data Sources in My Documents, I mean to have that folder has a special icon not the normal yellow folder icon?
To create the directory, get the My Documents path using
Environment.GetFolderPath
then create the directory. Like this,Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Test Directory"));
The appearance of the folder is determined by the desktop.ini[^] file.
Eslam Afifi