编写程序以识别桌面上使用最少的图标/文件/文件夹,并将它们移动到Documents中创建的临时文件夹 [英] Write a program to identify the least used icons/files/folders on the desktop and move them to temp folder created in Documents

查看:93
本文介绍了编写程序以识别桌面上使用最少的图标/文件/文件夹,并将它们移动到Documents中创建的临时文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C ++或java中执行此程序

识别桌面上使用最少的图标/文件/文件夹,并将它们移动到文档中创建的临时文件夹

How to do this program in C++ or java
Identify the least used icons/files/folders on the desktop and move them to temp folder created in Documents

推荐答案

将桌面文件夹的内容读入列表,并按文件访问时间对列表进行排序。然后决定移动哪些文件/文件夹并移动它们。



假设您使用的是Windows,可以使用的C ++函数是 FindFirstFile FindNextFile CreateDirectory ,以及 MoveFile (或相应的Ex功能)。
Read the content of the desktop folder into a list and sort the list by the file access time. Then decide which files/folders has to be moved and move them.

Assuming you are using Windows, the C++ functions that can be used are FindFirstFile, FindNextFile, CreateDirectory, and MoveFile (or the corresponding Ex functions).


为了更好地理解,您能否请提供更多细节的问题。



谢谢&问候

uic
Can you please collaborate the question with more details for the better understanding.

Thanks & Regards
uic


这篇关于编写程序以识别桌面上使用最少的图标/文件/文件夹,并将它们移动到Documents中创建的临时文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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