meoit Posted September 22, 2016 Share Posted September 22, 2016 Hello ALL!. I used to GetSpaceTotal but it is only in effect for one partition (also called Volume) of Disk and unable to calculate the size of hidden partition or unformatted disk of that. I want to get the Size of Disk in DiskPart. . . Thanks all. Link to comment Share on other sites More sharing options...
l3ill Posted September 22, 2016 Share Posted September 22, 2016 You might be able to build something with these two functions... ...returns bytes _WinAPI_GetDriveNumber _WinAPI_GetDiskFreeSpaceEx Success: The array containing the following information: [0] - The total number of available free bytes on a disk. If per-user quotas are being used, this value may be less than the total number of free bytes on a disk. [1] - The total number of available bytes on a disk. If per-user quotas are being used, this value may be less than the total number of bytes on a disk. [2] - The total number of free bytes on a disk. meoit 1 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now