VC实现文件的拷贝移动
来源:互联网 发布:淘宝卖家怎么收款 编辑:程序博客网 时间:2024/05/29 07:38
BOOL CopyFile( LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists);
- lpExistingFileName
- [in] Pointer to a null-terminated string that specifies the name of an existing file.
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "//?/" to the path. For more information, see Naming a File.
Windows Me/98/95: This string must not exceed MAX_PATH characters.
- lpNewFileName
- [in] Pointer to a null-terminated string that specifies the name of the new file.
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "//?/" to the path. For more information, see Naming a File.
Windows Me/98/95: This string must not exceed MAX_PATH characters.
- bFailIfExists
- [in] If this parameter is TRUE and the new file specified by lpNewFileName already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
该函数可以显示文件以及文件夹的整体拷贝和移动,例子如下:
CopyFile(_T("E://01.bmp"),_T("F://01.bmp"),FALSE );
把E盘的拷贝并移动到F盘
- VC实现文件的拷贝移动
- vc删除、拷贝、移动文件夹及其文件
- VC批量拷贝,移动,删除文件---SHFileOperation
- 文件拷贝的实现
- 如何实现文件的拷贝
- 文件拷贝功能的实现
- iOS 实现文件的拷贝
- JavaIO实现文件的拷贝
- java实现FTP远程文件移动(重命名、复制、拷贝)
- SHFileOperation()的外壳函数,用它可以实现各种文件操作,如文件的拷贝、删除、移动等
- java 实现 文件操作工具集。包括文件、目录树的拷贝、删除、移动、查找等工具函数
- java中的文件拷贝,移动
- shfileoperation 移动删除拷贝文件
- windows 自动拷贝可移动盘的文件
- VC中对word每页文件的单独拷贝
- 用java实现文件的拷贝
- 习题:用java实现文件的拷贝
- C语言实现的文件拷贝
- Qt4中ui文件生成vcproj
- xml文件结构
- 锻造软件需求人员的六大要素
- fcntl函数的简单应用
- QueryBuildDataSource的应用
- VC实现文件的拷贝移动
- 测试用例模板
- Smarty模板引擎基本语法的学习
- 2010.05.28 生成验证码的类
- 测试报告模板
- C++学习经典!~
- dll用法
- Oracle中CHAR类型自动补足空格的问题
- 测试计划模板