Resize Partition from dos command line


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.

 
jakewellsAsked:
Who is Participating?
 
Gary CaseConnect With a Mentor RetiredCommented:
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 (www.bootitng.com).
0
 
_iskywalker_Commented:
you may want http://gparted.sourceforge.net/download.php
it works on linux
it is based on http://www.linux-ntfs.org/
so you may use this, maybe you can get it to work on cygwin, so it would work on DOS. but no garantee
0
 
abdulxpCommented:
You can use "diskpart" utility from command prompt
it is free in windows xp
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
jakewellsAuthor Commented:
Diskpart almost works, it has the ability to extend, but I need to shrink the partition.
0
 
YurayCommented:
as far as i know dos doesn't support NTFS partitions, amn't i right?
0
 
_iskywalker_Commented:
wrong, at least it depend on the dos, you can load a ntfs module, dos 3.1 maybe doesnt support dll for file systems.
0
 
YurayCommented:
also you can try to use disk director, there is an some kind of boot disk, from it you can manage all partitions.
http://www.acronis.com/homecomputing/products/diskdirector/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.