It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                7年前关闭。
            
                    
是否有一段C ++代码可让我删除大约30天的特定目录中的文件?或存储它们的驱动器已满?谢谢!

最佳答案

看到


unlink-删除文件
stat-找出时间
readdir-列出文件


使用crontab每天运行一次程序。

或者使用find避免麻烦。

10-08 13:29
查看更多