VC++ CopyFile函数用法
来源:互联网 发布:数据库主键字段类型 编辑:程序博客网 时间:2024/05/17 21:06
BOOL CopyFile(
LPCTSTR lpExistingFileName, // pointer to name of an existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);
其中各参数的意义:
LPCTSTR lpExistingFileName, // 你要拷贝的源文件名
LPCTSTR lpNewFileName, // 你要拷贝的目标文件名
BOOL bFailIfExists // 如果目标已经存在,不拷贝(True)并返回False,覆盖目标(false)
如:
//拷贝文件c:\log.txt到d:\log.txt,如果D:\log.txt已经存在,就覆盖
CopyFile("c:\\log.txt","d:\\log.txt",false);
LPCTSTR lpExistingFileName, // pointer to name of an existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);
其中各参数的意义:
LPCTSTR lpExistingFileName, // 你要拷贝的源文件名
LPCTSTR lpNewFileName, // 你要拷贝的目标文件名
BOOL bFailIfExists // 如果目标已经存在,不拷贝(True)并返回False,覆盖目标(false)
如:
//拷贝文件c:\log.txt到d:\log.txt,如果D:\log.txt已经存在,就覆盖
CopyFile("c:\\log.txt","d:\\log.txt",false);
- VC++ CopyFile函数用法
- VC++ CopyFile函数用法
- VC++ CopyFile函数用法
- VC++ CopyFile、MoveFile函数用法
- C++ CopyFile函数的用法
- CopyFile函数
- copyFile函数
- CopyFile和MoveFile函数
- API函数 CopyFile
- CopyFile和MoveFile函数
- WINAPI--CopyFile()函数
- Copy、CopyFile、FileCopy的用法
- delphi CopyFile的基础用法
- CopyFile函数使用(Delphi)
- copyFile
- copyfile
- CopyFile
- copyfile
- 配置CentOS 6.2 第三方yum源
- Ext学习笔记9-表单
- Ext学习笔记10-表单续
- C/C++中extern关键字的用法
- android模拟器(AVD)不能使用键盘的问题解决
- VC++ CopyFile函数用法
- 疑难字符输出--adb使用过的命令
- Android组织首选项PreferenceScreen及首选项框架 ListPreference
- jquery 在 ie 8 360中 有对象不支持的问题
- df ===磁盘空间
- Ext学习笔记11-布局
- linux内核网络协议栈学习笔记(1)
- C# 中的委托和事件
- 损害女性健康的生活习惯