System.IOUtils.TDirectory.Copy

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory


説明

ソース ディレクトリのコンテンツを、対象ディレクトリにコピーします。

Copy を使用すると、与えられたパスから別のパスへコンテンツをコピーします。The following table lists the parameters expected by this method.



名前 意味

SourceDirName

コピー元のディレクトリのパス。

DestDirName

コピー先のディレクトリへのパス。



メモ: Copy は、指定されたパスが無効、存在しない、もしくはアクセスできないなどの場合に、例外を発生させます。

関連項目

コード サンプル