C:\> diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: %COMPUTERNAME%
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 12 GB 8033 KB
Disk 1 Online 100 GB 2008 MB
DISKPART> select disk=1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 100 GB 32 KB
DISKPART> select partition=1
Partition 1 is now the selected partition.
DISKPART> extend
DiskPart successfully extended the volume.
DISKPART> exit
Leaving DiskPart...
C:\>