Share via


Directory.GetCurrentDirectory Method

Gets the current working directory of the application.

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

Syntax

public static string GetCurrentDirectory ()

Return Value

A string containing the path of the current working directory.

Remarks

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

-->

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Directory Class
Directory Members
System.IO Namespace