Resize Partition from dos command line

Posted on 2006-11-10
Last Modified: 2008-01-09

I am looking for a tool that can resize a NTFS partition from DOS.
I need to be able to script this so this can be done in an automated process.
I would also prefer this be a free tool if possible.

Question by:jakewells
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 70

Accepted Solution

garycase earned 125 total points
ID: 17917429
Not from DOS ... and not from a script ... but Boot-It NG does boot to its own environment; and does a perfect job of resizing a partition.   The free demo version will let you give it a try (

Expert Comment

ID: 17918998
you may want
it works on linux
it is based on
so you may use this, maybe you can get it to work on cygwin, so it would work on DOS. but no garantee

Expert Comment

ID: 17928840
You can use "diskpart" utility from command prompt
it is free in windows xp
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 17930510
Diskpart almost works, it has the ability to extend, but I need to shrink the partition.

Expert Comment

ID: 17937577
as far as i know dos doesn't support NTFS partitions, amn't i right?

Expert Comment

ID: 17937633
wrong, at least it depend on the dos, you can load a ntfs module, dos 3.1 maybe doesnt support dll for file systems.

Expert Comment

ID: 17954053
also you can try to use disk director, there is an some kind of boot disk, from it you can manage all partitions.

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question