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)

public static string GetCurrentDirectory()

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.