how to "merge" via cmd
Hi,
the article here talk about /extend and /move command:
Partition a Hard Drive from Command Line Prompt (diskpart.com)
but didn't refer to a way to "merge".
I have 1 disk with 2 volumes, C and D + unallocated after D. I want to merge the unallocated with C drive. this is doable from the GUI. however, I need to script it and run it on +100 machines. I need a way to automate this action either through GUI or CLI.

Thanks,
the article here talk about /extend and /move command:
Partition a Hard Drive from Command Line Prompt (diskpart.com)
but didn't refer to a way to "merge".
I have 1 disk with 2 volumes, C and D + unallocated after D. I want to merge the unallocated with C drive. this is doable from the GUI. however, I need to script it and run it on +100 machines. I need a way to automate this action either through GUI or CLI.
Thanks,
Tagged:
Comments
we have 1 disk with 2 volumes C and D + unallocated
what we did was, move D volume (# 4) to the right.
now that C drive (# 3) is adjacent to the unallocated space, we can run option /extend fine.
It will change the location of F: drive by moving10GB (unallocated space) to the left side.