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

delete folder's(inside folder TEST)+file's(present inside folder's)?

$
0
0

Hi Experts,

i have "BACKUP" folder like "D:\files\backup\"

inside backup folder i have <date> folders like "D:\files\backup\20131201\" and "D:\files\backup\20131217\" and so on...

And inside each <date> folder i have "test_<yyyymmddhhmmss>.Z" files.

Now i want to purge the files(which are present inside the <date> folder's) which are created 30 day's before.(my code should go inside each and every <date> folder and check for the file)

and folder's also should get deleted.

How can i do it in C#?

Please help me

Thankx in advance



Viewing all articles
Browse latest Browse all 31927

Trending Articles



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