Windows apps
Collapse the table of content
Expand the table of content

GetCurrentDirectory Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the current working directory of the application.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

static member GetCurrentDirectory : unit -> string 

Return Value

Type: System..::..String
A string that contains the path of the current working directory, and does not end with a backslash (\).

The current directory is distinct from the original directory, which is the one from which the process was started.

Show:
© 2017 Microsoft