Hello Community,
i got a very strange behaviour here.
For example, i am working in the directory: C:\Test. When I call my assembly, abc.exe, the Environment.CurrentDirectory (or all relative paths) are C:\Test.
Now, my file takes files as arguments (like an Editor). So when i drag and drop a file (test.txt) on my exacutable, the Environment.CurrentDirectory variable (and relative Paths) change to my default User directory which is something like C:\Files and Settings\Username\... and so on
Why does this happen
How can i get the Path, where the File is located
I am working on .Net 2.0 beta 2
Thanks in advance!!!
Your help is very appreciated.
Thomas

Relative Paths (or CurrentDirectory) wrong if called with arguments?
Michael Miller
this.GetType().Assembly.Location
Joenormal