/build/static/layout/Breadcrumb_cap_w.png

DISKPART script

I would like to use diskpart or another utility to create a dual partition using a percentage of the disk I have instead of a fixed numerical value. I have multiple disk sizes here and would like to use for example 70% as a primary C: and the remaining 30% as D: Currently I am having to write a new script for each type of machine I am imaging.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: ashmite 15 years ago
Senior Yellow Belt
0
I'd attack the problem by creating a control script that determines the size of the attached drive, then calculates the correct percentages and passes them as parameters to the DISKPART command via the SHELL methods in VBScript or Kix.

For me, I'm more about keeping the C: partion a uniform size across our systems.

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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