SysUtils.ChangeFilePath

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From SysUtils.pas

	function ChangeFilePath(const FileName: string; const Path: string): string; overload;


Unit: SysUtils

Type: function

Visibility: public

C++ Information

From SysUtils.hpp

	System::UnicodeString __fastcall ChangeFilePath(System::UnicodeString FileName, System::UnicodeString Path);


Unit: SysUtils

Type: function

Description

Changes the path of a file name.


ChangeFilePath replaces the drive and directory parts of the passed FileName with the passed Path value. If Path is not blank, it must specify a drive (terminated by a colon) and/or a directory (terminated by a backslash).

ChangeFilePath does not rename the actual file, it just creates a new file name string.

Note:  This function works with multi-byte character sets (MBCS).

See Also

Personal tools
Translations
Newest Version