E
E
Evgeny Rumyantsev2015-11-02 13:27:27
Windows
Evgeny Rumyantsev, 2015-11-02 13:27:27

Different amount of used disk space in Windows XP, Windows 7 and Total Commander, how to solve?

Windows XP
322a60b9cda44176bdd61f989ec53842.PNG
Windows 7
4e047cf3f80446509fe7b9e48cac0625.png
Total Commander
4bea8fb2009c4033b8c529fe9fbc33a6.png
The code from C# produces 3805184, which corresponds to issuing total commander and issuing windows xp.

DriveInfo drive = new DriveInfo(driveLetter);
var test = (drive.TotalSize - drive.TotalFreeSpace).ToString();

The question is how to achieve the same number in all systems or get the number from Windows 7?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rainbird, 2015-11-02
@hammerit

Is the disc multisession? Probably, xp shows only useful data, and 7 - the volume of all sessions. I could be wrong, there is nothing to check. If so, dig into the IMAPI side: IDiscFormat2Data::get_FreeSectorsOnMedia and IDiscFormat2Data::get_TotalSectorsOnMedia

S
Sergey Kovalev, 2015-11-04
@Sergey-S-Kovalev

Smoke
How to properly measure the occupied disk space and ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question