To change drive letters:
First you have to get the GUID of the drive you want to change and store it somehow.
Then you have to remove the existing drive letter.
Finally you add a new drive letter using the GUID you saved.
WARNING: Use at your own risk!! If you remove/change the drive letter from your boot drive your on your own if you can no longer boot.
The following information was gleaned from the following site:
Microsoft Knowledge Base Article - 280297
echo off mountvol %1 /L>drive.mnt Echo Deleting %1 drive mountvol %1 /D for /f %%I in (drive.mnt) do set changedrive=%%I Echo Remounting %1 as %2 drive mountvol %2 %changedrive% set changedrive= del drive.mnt
%1 - old drive letter
%2 - new drive letter
mountvol - included as part of windows xp in %systemroot%\system32 directory.
If anyone knows a way to directly put the output of "mountvol %1 /L" in to a environment variable, post it and I'll change the script.
It seems to me there is a way but I can't come up with it without 3rd party utilities, I'm just a bit out of practice with cmd/bat files.
For those looking to change CD-ROM drive letters I earlier posted a program (Detectcd.exe) earlier which will set a system environment variable to each cd-rom drive in the system.
Then you can then use the variables to change your drive letters and if you plan to use the environment variables rerun DetectCD to reset the variables to the new drive letters.
see: http://www.MSFN.org/...topic=10798&hl= for DetectCD