Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

delete folder if older then 30 days

$
0
0

Hi,

I have <date> directory inside backup folder as "D:\files\backup\20130301" and "D:\files\backup\20140302" and so on...

i want to delete the directory which are older than 30 days not based on create time or modified time.

insted based on the directory date like 20130302<30 days then that directory should get deleted along with, if it contain any files.

Can any one please help me to write C# code for this...


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>