Autor Beitrag
Jan_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 10.10.03 12:35 
hiho,

Im Thread, Desktop Pfad steht, wie man den kriegt, wie ist es wenn man den Windowspfad braucht? (habe lange gesucht aber nichts brauchbares gefunden!)

cu
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 10.10.03 12:47 
Hallo,

mit der API-Funktion GetWindowsDirectory.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var buf:array[0..MAX_PATH] of Char;
...
if (GetWindowsDirectory(buf, MAX_PATH)<>0then 
  ShowMessage(String(buf))
else
  ShowMessage('Kein Windows-Verzeichnis vorhanden!');
...

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 10.10.03 13:00 
Hallo Jan!

Jan_ hat folgendes geschrieben:
habe lange gesucht aber nichts brauchbares gefunden!

Dann hast du wohl nicht die FAQ und nicht die Suche benutzt: ...das Windows- & das Systemverzeichnis bekommen?

Gruß
Tino
Jan_ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 10.10.03 13:12 
hiho

Danke, ich habe nach Windows Pfad gesucht
Danke, für eure Bemühungen.

cu