如何在c#windows应用程序中删除文件夹中不需要的文件? [英] how can we delete the unwanted files from folder in c# windows application?

查看:132
本文介绍了如何在c#windows应用程序中删除文件夹中不需要的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好每一个



我创建了windows c#application ..因为有一个文件夹我用这个来保存一些文件.. 。当我保存文件时,它还会创建其他文件...我想删除其他文件,如.doc,.dwg文件......



如何我可以删除该文件夹中不需要的文件吗?

good morning every one

i''m created windows c# application.. in that having a folder i''m using this to save some files...when i''m saving files it create other files also... i want to delete that other files like .doc,.dwg files...

how can i delete the unwanted files in that folder?

推荐答案

使用 File.Delete 方法 [ ^ ]。


这篇关于如何在c#windows应用程序中删除文件夹中不需要的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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