Autor Beitrag
new.Matrix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Di 13.05.08 10:28 
Hallo Zusammen,

Wie bekomme ich den absoluten Pfad meines Programmes raus?

Also mit Environment.CurrentDirectory.ToString() würde es wunderbar funtkionieren, nur habe ich da das Problem, dass wenn ich während des Programmstarts was anderes anklicke, der Pfad nicht mehr stimmt... da gibts doch sich einen anderen Weg?


Moderiert von user profile iconChristian S.: Topic aus WinForms / WPF / Silverlight verschoben am Mi 14.05.2008 um 15:15
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Di 13.05.08 11:21 
Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]) :)
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Di 13.05.08 11:39 
Application.StartupPath tut's auch. Jürgen