Joined Dec 2003
Yeah, I Like Me Too
Forum Thread
DOS Command to get total Disk Size?
March 14, 2005 at
11:27 AM
Does anyone know a DOS command (Windows 2000/XP/2003) that will return total Disk size? Something other than chkdsk, something that will return immediately with the total size (something like dir command).
Add a Comment
Sorry, this thread is closed.
About the OP
15 Comments
Your comment cannot be blank.
Sign up for a Slickdeals account to remove this ad.
Thanks.
PS. I just did a quick search on Windows Help and there seems to be nothing other than chkdsk and getting it through GUI that does it. I can't believe M$ would be so short sighted and wouldn't include a simple command that would return total disk/partition size.
c:\>DISKPART (enter)
DISKPART> LIST DISK (enter)
will return the disk size, status, and freespace.
EXIT (enter)
to leave DISKPART and return to the command prompt.
DISKPART [microsoft.com] can use scripts.
Thanks.
Xnard and yjchung, thanks for the info. That'l get the info I asked for, but I was hoping to get something that will run from a a generic command prompt. The reason i say that is because it won't be done manually, this will be done programatically and there are some restrictions as to what I can do.
Thanks again.
Xnard and yjchung, thanks for the info. That'l get the info I asked for, but I was hoping to get something that will run from a a generic command prompt. The reason i say that is because it won't be done manually, this will be done programatically and there are some restrictions as to what I can do.
Thanks again.
Sign up for a Slickdeals account to remove this ad.
If the IT dept.has done their job right, you are not going to be able to run disk part!
Is this for a scripting class or you just trying something?
http://www.integrien.c
It can be off by a little bit.
If you type: you get something like this:
On my laptop, this technique underestimated the total disk space by ~2.7% compared to chkdsk. The results aren't instant, but much faster than chkdsk.
yjchung, that will work. That is exactly what I need. Regarding admin account, it depends how the user will configure our software, they can enter either administratvie or a regular account in SSH configuration. Chances are they won't enter an admin account. Does it have to be admin?