Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get information about the file system and disk size at a given virtual machine?
I used VMware workstation and C#..
Posted
Comments
PIEBALDconsult 24-Feb-15 18:24pm    
Don't they provide tools for that?
phil.o 8-Mar-15 13:32pm    
From the virtual machine's point of view, or from the hypervisor's one?

1 solution

Something like this I'd imagine:

C#
System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();
foreach (DriveInfo drive in drives)
{
    if (drive.IsReady) Console.WriteLine(drive.TotalSize);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900