in reply to Re^4: How to change the drive letter for a CD/DVD drive on Windows?
in thread How to change the drive letter for a CD/DVD drive on Windows <b>Update: with a script</b>?
You might want to at least consider the possibility of multiple drives or other volume assignments:
#! perl -slw use strict; my @vols = split "\n", `diskpart /s listvol.txt`; print for @vols;
Where listvoe.txt contains:
list volume
Will get you the volume list. You can then grep on /ROM/ and tease the line(s) apart to get the volume number.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to change the drive letter for a CD/DVD drive on Windows?
by matze77 (Friar) on Dec 04, 2009 at 16:02 UTC |