/build/static/layout/Breadcrumb_cap_w.png

Utility that determines total hard drive size?

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

Answers (1)

Posted by: Soulin 20 years ago
Senior Yellow Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ