I’m trying to come up with a program that helps me manage my tv show downloads.
I have a tv show folder with a bunch of sub folders that contain the tv show files. I would like to be able to recursively search each folder for the largest file, rename that file to the folder name it was contained in, put that file in the tv show folder and then delete the folder. If the folder is nested, I want the name of the top most folder.
Where can I find some documentation on how to do this?
Your task seems pretty straightforward – look at the MSDN docs for the DirectoryInfo and FileInfo classes; that should point you in the right direction.