Possible Duplicate:
How do I get a directory size (files in the directory) in C#?
I have a program which makes SQL Server backups. After every run it creates a backup file. But the files are accumulating.
I´d like to add method which will be checking the backup directory size and if the size will be higher then threshold size, it will delete last file.
Do you know how can I do this?
Thanks a lot!