How do I get the pwd (ParentWorkingDirectory)???

Hi,

I figured out the pwd using the following code:

this._pwd = Directory.GetParent("_").ToString();

I used the "GetParent("_")" statement to figure out the current working diretory. Mybe somebody knows a better way to do this...

Thank u,

Finch.



Answer this question

How do I get the pwd (ParentWorkingDirectory)???

  • BostonBakedBean

    The Application class exposes a number of properties about itself, one is

    Application.StartupPath()
    which gets the current path for the application, minus the application name itself

    Cathal


  • How do I get the pwd (ParentWorkingDirectory)???