Setting a specific path
Frage / Problem
I'm setting the Path property of e.g. the ShellListView to a constant value like "c:\windows" when developing my application, is there a better way?
Antwort / Lösung
If you cannot be sure, that the path exists thoughout different systems, it is better to use the SpecialFolder than to explicitly set a path.
The ShellFolders have a similar function than environment variables, allowing you to specify a known location, whatever path might be associated with it on a customer's system.