Jump to content

Script to resize NTFS partition


hdavid

Recommended Posts

Hello,

I've been looking everywhere but I couldn't find what I'm looking for. :(

What I need is a tool/software that give the ability to resize the OS partition (Windows XP) directly in a script with switch without be prompting and then be able to create a new partition (fat).

Any help would be appreciate.

Thank you

David

Link to comment
Share on other sites


Check out Microsoft's diskpart utility. It can do what your looking for and you can create a script file with the parameters you want to do anything to your hard disk(s).

Link to comment
Share on other sites

i've just tryed diskpart from Microsoft. You can do pretty much with this tool but not resizing.. :-(

anyone have another idee ?

can partition magic be run at the command line ?

Link to comment
Share on other sites

partition magic with an autoit script?

edit:

commandline? dunno, can't get it installed anymore... :blink: Says setup was interrupted blabla, and can't find a fix nowhere (except rollback of SP2). I'm also getting this error with many other installers (can't remember wich). But that's offtopic :P

Link to comment
Share on other sites

Hi,

Partition Magic 8 DOES have a command-line AND can be used to re-size.

Just install it and tell it to make a rescue disk onto floppies, and then copy over the whole thing it wrote, to a CD.

Then put a DOS boot-sector and these files of PM8 and then your script onto the CD and boot off it. You could even run the script automatically by modifying the autoexec.bat

Link to comment
Share on other sites

diskpart does work, get bartpe and create a cdrom with it.

Boot up to the cdrom

after the os loads open a command prompt

type diskpart

type show volume

type select volume # <--# is the volume you want to extend

type extend to extend the partition out all the way or

type extend size=?? ?? is the # of MB you want to increase

reboot and remove cd and boot up normally

:D:hello:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...