是否有可能创建C ++程序,找到一种将文件复制到USB驱动器的有效方法? [英] Is it possible to create C++ program that will find a efficient way to copy files to USB drive?

查看:48
本文介绍了是否有可能创建C ++程序,找到一种将文件复制到USB驱动器的有效方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常必须将一组文件复制到一个或多个USB驱动器。以最有效和最有效的方式将文件发送到USB驱动器非常困难,因此从一组文件中,适合剩余可用空间最少的文件将被复制到USB驱动器。



**我不是编程学生,我喜欢编程并且有一些BASIC语言的经验。



< b>我尝试了什么:



我对此做了一些研究,但找不到任何有用的东西。

我会继续寻找信息,如果我找到了什么,那么我会在这里插入。

解决方案

我对谷歌获取免费磁盘空间窗口c ++的简短研究给了我 GetDiskFreeSpace 函数,返回可用空间量。



这应该是计算复印作业的最佳文件集的起点。



猜猜:复制文件你可以使用 CopyFile



考虑学习强大的C ++语言和Windows API。 ; - )

I usually have to copy a group of files to one or more USB drive. It quite difficult to send the files to the USB drives in the most effective and efficient way so that from a group of files, the ones that fit with the least amount of free space remaining get copied to the USB drive.

**I'm not a programming student, I just like programming and have some experience with BASIC language.

What I have tried:

I have done some research on this but couldn't find anything useful.
I will continue looking for information, and if i find something then i will insert it here.

解决方案

My short research for "get free disk space windows c++" with Google gave me the GetDiskFreeSpace function with returns the amount of free space.

That should be the starting point of calculating the optimal file set for your copy job.

And guess: to copy a file you can use CopyFile.

Consider learning the powerful C++ language and the Windows API. ;-)


这篇关于是否有可能创建C ++程序,找到一种将文件复制到USB驱动器的有效方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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