If I run this command:
fsutil volume diskfree e:
I get:
Error: Access is denied.
Only by manually opening an "elevated" cmd.exe does it output the actual output of the command.
I need a (built-in) command which determines the free space of a given disk (drive letter), even if the cmd.exe is not "elevated" (administrator).
(The reason it requires elevation is apparently that "fsutil" can do a bunch of other things as well.)
dir e:
will output the number of free bytes.WinSxS
contains symlinks (or similar) so those files are often counted multiple times by windows and this can cause a lower free-space count than is actually present. I don't think there is a work-around for this.