xtd 0.2.0
Loading...
Searching...
No Matches

◆ current_directory() [1/2]

static xtd::string xtd::environment::current_directory ( )
static

Gets the fully qualified path of the current working directory.

Returns
xtd::string A string containing a directory path.
Remarks
By definition, if this process starts in the root directory of a local or network drive, the value returned by this method is the drive name followed by a trailing slash (for example, "C:\"). If this process starts in a subdirectory, the value returned by this method is the drive and subdirectory path, without a trailing slash (for example, "C:\mySubDirectory").
Exceptions
xtd::not_supported_exceptionThe operating system does not have current directory functionality.
Examples
test_forms.cpp.