MoveTo()

DirectoryInfo::MoveTo(const String&) method

Moves the directory represented by the current object and all its contentto the specified location.

void System::IO::DirectoryInfo::MoveTo(const String &destDirName)

Arguments

ParameterTypeDescription
destDirNameconst String&The new location

See Also