Autor Beitrag
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 28.01.03 23:45 
Hallo,

weiß jemand, wie ich den Pfad des Eigene-Dateien-Ordners rausfinden kann?
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mi 29.01.03 01:24 
Such nach "virtuellen Ordnern".

Welche Version von Delphi hast du? Ist leider nicht unwichtig.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 29.01.03 01:27 
SHGetSpecialFolderPath
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 29.01.03 11:50 
Hab ich gerade auf meiner Platte gefunden. Obs funktioniert kann ich nicht sagen.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
Uses ShlObj;

Function GetFolder (Folder: Integer): String;
Var 
  FilePath: Array [0..MAX_PATH] of Char;
Begin
  SHGetSpecialFolderPath (0, FilePath, Folder, False);
  Result := FilePath;
End;


In Deinem Fall müsstest Du glaube ich die FolderId CSIDL_PERSONAL benutzen:
ausblenden Quelltext
1:
Label1.Caption := GetFolder (CSIDL_PERSONAL);					

Gruß
TINO
Andreas Pfau Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 29.01.03 17:24 
Vielen Dank euch allen fie dei Schnelle Hilfe :D