文件夹复制VC ++ [英] Folder copy VC++

查看:193
本文介绍了文件夹复制VC ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要将目录从一个驱动器复制到另一个驱动器。
我选择的目录包含许多子目录和文件。
如何使用vc ++实现相同

i want to copy a directory from one drive to another drive. My selected directory contain many sub directories and files. How can i implement the same using vc++

推荐答案

SHFileOperation() API函数是用于复制文件的主力函数。它支持递归目录。查看 SHFILEOPSTRUCT 结构中的可用选项,以控制副本。

The SHFileOperation() API function is the workhorse function for copying files. It supports recursing directories. Review the options available in the SHFILEOPSTRUCT structure to control the copy.

这篇关于文件夹复制VC ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆