BatchPatch Forums Home › Forums › Re: Check Free Space, Multiple Drives – not just C:
Go to Actions > Get Information > Create/modify user-defined commands. Then create a command with the following text:
WMIC PATH Win32_LogicalDisk where "drivetype=3" GET deviceid, volumename, freespace, size
This will show you the free space / size for all drives.
If you wanted to limit it to just the D: drive, you could use this command instead:
WMIC PATH Win32_LogicalDisk where "deviceid='D:'" GET deviceid, volumename, freespace, size
To execute the action, go to Actions > Get Information > Execute user-defined commands, and then pick the command you just created.
We’ll consider hardcoding an option for the user to select which drive s/he wants information for, so that it can easily be reported back to the grid just like the “Get C: disk space” method currently does. In the meantime, the above commands should give you what you want.
I hope this helps.
-Doug