Discussion:
Getting system folder structure (the folder tree under Desktop/My computer) and icons and strings
(too old to reply)
Sonnich Jensen
2017-12-27 20:55:51 UTC
Permalink
Hi all

Is there a way to read the structure from Windows, hence, on Windows 7: Desktop, Libraries, documents and MyComputer etc or Windows 8 : Computer with all the folders and drives here?
The views are different and I'd like to read the structure

Also, I have most of the icons, but the Libraries icon from W7 is not a part of CSIDLs. How do I get that one?

And for languages - how do I get My Computer in the language used by the computer?

WBR
Sonnich
Arne Vajhøj
2017-12-27 20:59:56 UTC
Permalink
Post by Sonnich Jensen
Is there a way to read the structure from Windows, hence, on Windows 7: Desktop, Libraries, documents and MyComputer etc or Windows 8 : Computer with all the folders and drives here?
The views are different and I'd like to read the structure
Also, I have most of the icons, but the Libraries icon from W7 is not a part of CSIDLs. How do I get that one?
And for languages - how do I get My Computer in the language used by the computer?
You want more control than just using:

Environment.GetFolderPath(Environment.SpecialFolder.Xxxxx)

?

Arne
Sonnich Jensen
2017-12-28 08:17:10 UTC
Permalink
Post by Arne Vajhøj
Post by Sonnich Jensen
Is there a way to read the structure from Windows, hence, on Windows 7: Desktop, Libraries, documents and MyComputer etc or Windows 8 : Computer with all the folders and drives here?
The views are different and I'd like to read the structure
Also, I have most of the icons, but the Libraries icon from W7 is not a part of CSIDLs. How do I get that one?
And for languages - how do I get My Computer in the language used by the computer?
Environment.GetFolderPath(Environment.SpecialFolder.Xxxxx)
?
Arne
Yes - it gives me the path to that folder, and I can then read whatever is there - but the structure of the folder tree is not in there as some items such as Libraries and My Computer only exist in the tree, they are not actual folders.
Getting the icon for My Computer is easy, but I cannot see how to get the Libraries icon.

And the tree layout is also different from from system to system, and finally the Desktop can be called "Skrivebord" and "Kirjutuslaud" in other languages.

WBR
Sonnich
Luuk
2017-12-28 09:21:21 UTC
Permalink
Post by Sonnich Jensen
Post by Arne Vajhøj
Post by Sonnich Jensen
Is there a way to read the structure from Windows, hence, on Windows 7: Desktop, Libraries, documents and MyComputer etc or Windows 8 : Computer with all the folders and drives here?
The views are different and I'd like to read the structure
Also, I have most of the icons, but the Libraries icon from W7 is not a part of CSIDLs. How do I get that one?
And for languages - how do I get My Computer in the language used by the computer?
Environment.GetFolderPath(Environment.SpecialFolder.Xxxxx)
?
Arne
Yes - it gives me the path to that folder, and I can then read whatever is there - but the structure of the folder tree is not in there as some items such as Libraries and My Computer only exist in the tree, they are not actual folders.
Getting the icon for My Computer is easy, but I cannot see how to get the Libraries icon.
And the tree layout is also different from from system to system, and finally the Desktop can be called "Skrivebord" and "Kirjutuslaud" in other languages.
WBR
Sonnich
https://docs.microsoft.com/en-us/uwp/api/windows.storage
and
https://docs.microsoft.com/nl-nl/windows/uwp/files/index

"You use the APIs in the Windows.Storage, Windows.Storage.Streams, and
Windows.Storage.Pickers namespaces to read and write text and other data
formats in files, and to manage files and folders. In this section,
you'll also learn about reading and writing app settings, about file and
folder pickers, and about special sand-boxed locations such as the
Video/Music library"

Loading...