WINDOWS VISTA TIPS
How to extend or shrink volume with Diskpart.exe
With diskpart.exe and command prompt you can do the same as with
Disk Management and more. Particularly if you find problems with Disk
Management,they may be fixed using diskpart with all the options available.
Using
Disk Management
Using diskpart with command prompt
- Open command prompt with administrator privilege ,to do
it,right click Command Prompt and choose run as administrator
from the drop down menu.
- Type diskpart and click enter, then type list disk.
and you'll have a list of all your disks See fig.1)

Figure
1
- To list Volumes,select the disk typing
select disk (number) and then list volume
- Then to select a volume type select volume (number) (see fig2} You can see all the options by typing
Help (See fig 3)
-

Figure 2

Figure 3
-
To extend a volume by 5GB for example, select the desired volume and then type
extend size = 5000 and enter.
That's all.I hope all this was useful