CopyFileTo函数怎样使用?
需不需要用USES命令
是不是API函数
需不需要用USES命令
是不是API函数
解决方案 »
- 怎样设置 DirectoryListBox 的初始路径为 我得电脑 或者桌面 不用TDriveComboBox
- TLocateOption 这个类怎么做身份验证窗体?
- 高手请进,文件查找的问题,估计好多人都不会的?
- 看不懂这个错误大家看一看,Project 123.exe raised exception class EAccessViolation with message 'Access violation at address 00404
- 急用!!!!!分不够再加。
- 广州招聘
- TApdcomport
- 我作了一个ICO的图标,作为程序的图标,为什么我用它的时候提示错误。而用别的(系统自带)就没有错误?
- 请一定要帮帮我,关于控件编写的问题!!!!
- 急!找不到的控件及帮助
- 如何才能是Panel放在form上后不能再随便移动?
- 一个关于FTP的问题!
function CopyFileTo(const Source: string; const Destination: string): Boolean;Parametersconst Source: stringSource file name.
const Destination: stringDestination file name.
ReturnsBoolean - True if the file is copied, False on error.
DescriptionCopyFileTo is a function used to copy the file specified in Source to the file specified in Destination.
CopyFileTo will return False if the file in Destination already exists.
CopyFileTo encapsulates the platform-specific calls needed to perform the file copy operation. On the Windows platform, this is the Win32 API function CopyFile. On the Linux platform, CopyFileTo uses a TFileStream instance to create the destination file.
那就是
CopyFileTo(const Source: string; const Destination: string): Boolean;
copyfileto(源文件,目标文件),
如是目标文件已存在则返回False,