MoveFile function
移动或重命名指定文件
Function:
bool UAPI MoveFile(
LPCSTR lpExistingFileName,
LPCSTR lpNewFileName
);
Parameters:
- lpExistingFileName [in]:当前文件路径
- lpNewFileName [in]:目的文件路径
Return value:
- Type:BOOL
- Text:成功返回 TRUE,失败返回 FALSE
Remarks:
开发者可以将 lpNewFileName 参数指定为新文件路径名以实现文件重命名的目的:
C++ Code:
MoveFile("photo\1.jpg","photo\2.jpg"); // Rename 1.jpg to 2.jpg
Requirements:
| Keyword | Value |
|---|---|
| Minimum Agine Version | 171012.1 |
| Minimum SDK Version | 171012.1 |
| Header File | h.files |
| Library Server | kext |