mangomel
06-19-2007, 06:14 AM
My apps deletes some files from _ProgramfilesFolder, _WindowsFolder, Documents and settings folder etc. Each folders may be on a different drives. I want to know how many space did deleting free up. So I should get free space (Drive.GetFreeSpace) before and after deleting of each drive of this folders and subtract first result from the second. Now I would get amount (in mb) of deleted files on each drive. Then I should add this numbers to get size of all deleted files.
But, If the path to windows folder and program files folder has the same drive letter, then the overall size would be wrong because I add two (or more) result from the same drive together!
So first I should get drive letters from all pathes and group it according to these letters and then get free space before and after deleting and finally, add result together.
But how to group it? Any similar ideas? Any other ideas? Please help!
But, If the path to windows folder and program files folder has the same drive letter, then the overall size would be wrong because I add two (or more) result from the same drive together!
So first I should get drive letters from all pathes and group it according to these letters and then get free space before and after deleting and finally, add result together.
But how to group it? Any similar ideas? Any other ideas? Please help!