Jump to content

Recommended Posts

Posted

Hi,

I'm trying to use DiskPart to assign new mount points to Dynamic Drive Simple Volumes from a script.

I've found that if I call diskpart /s with a script that does a 'list vol', each time I call it, the Dynamic Disk volumes may have a different volume index, which makes it pretty much useless for scripting since I need to associate a disk with specific label to a specific mount point.

eg.

I call diskpart with 'list vol'

Then, within a perl script, I was hoping to use the volume index associated with the label I'm interested in.

I then call diskpart again and do 'select volume <index>' followed by 'assign mount=<new-path>'

But this doesn't work because each time you enter diskpart, it renumbers the volume indices. It doesn't do this for basic disks though.

Does anyone know of an alternative way of doing what I'm trying to do ?

Many thanks

Richard


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...