Autor Beitrag
coolace
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 141



BeitragVerfasst: So 07.09.08 18:02 
Hy,

ich weiß nicht was ich falsch mache aber ich will das mein Programm wenn es Dateien speichert dies im jeweiligen Userverzeichnis macht,

meine Idee

ausblenden C#-Quelltext
1:
File.Create(%HOMEPATH%\"datei.txt")					


klappt aber nicht, wie bring ich den dazu die Windowsvariable korrekt auszulesen ?

Danke und Gruß

Coolace
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: So 07.09.08 18:33 
Schau dir einmal Environment.GetFolderPath an.

_________________
>λ=
coolace Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 141



BeitragVerfasst: So 07.09.08 18:49 
Dankeschön, das war es was ich brauchte.

Gruß

Coolace