System.IOUtils.TDirectory.Move

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure Move(const SourceDirName, DestDirName: string); static;

C++

static void __fastcall Move(const System::UnicodeString SourceDirName, const System::UnicodeString DestDirName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Moves or renames a directory and its contents.

Use Move to move or rename a directory and its contents from a given path to another path. The following table lists the parameters expected by this method.



Name Meaning

SourceDirName

The path of the source directory that will be moved.

DestDirName

The destination path to which the directory will be moved.



Note: Move raises an exception if the given paths are invalid, do not exist, or cannot be accessed.

See Also