Does anyone know of a utility that will produce a value corresponding to the total size of a system's hard drive. At this point, I don't care about cases where multiple drives are present, or what the sizes of the PARTITIONS are.

fdisk /STATUS will diplay this info, but I was unable to pipe the result into a text file or variable.

I'm trying to get this to work because I'm working on bootable, re-imaging CDs (with Sysprep'd Ghost images) that junior admins will use to re-image machines. I want the admins, when they boot up with the CD and the batch file is running, to be able to 1) see the total size of the hard drive flashed on the screen and 2) use this to help them choose an appropriate size for the C: drive (D: will get the remainder) when prompted. We have different platforms here, with some older machines (notebooks) with 8GB drives and some newer machines with 80GB and up.

I've looked at tons of utilities, done a bunch of Google searches, but have not found anything that would work. Any help is appreciated.
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Hmmm, sounds strange U have got the problem with using Gdisk pipe - I am using piped gdisk when I need to determine if HDD was formated - %ramd%\gdisk\gdisk.exe 1 /status|%ramd%gdisk\find.exe /i "hddinst" > nul
Answered 06/23/2004 by: Soulin
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity