Autor Beitrag
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 24.10.05 09:57 
Unter Win32 geht das ja relativ einfach.
Ich vermute, dass es im Framework ein Namespace gibt, die spezielle Methoden für mein Problem liefert, aber ich finde es nicht. Google habe ich auch schon bemüht.
Hat jemand eine Idee, wie ich das Benutzer-Verzeichnis feststellen kann?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 24.10.05 10:04 
Hallo!

In .NET ist es auch sehr einfach: In Environment.SpecialFolder findest Du einen haufen System-Ordner. Mittels Environment.GetFolderPath ermittelst Du deren tatsächliches Verzeichnis.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 24.10.05 10:09 
:autsch:
Ich hatte bei System.Directory versucht was zu finden.