Jump to content

change drive letter


Recommended Posts


You don't do this in winnt.sif.

You can do this using diskpart.exe, which is part of the Windows OS. It needs a script to tell it what to do and where.

I use it at t-12 to change my two DVD drives to Y: and Z:

I do it as follows:

- Create a file DriveAssign.cmd and place it in your $oem$ folder.

- Add a line in your cmdlines.txt file under [Commands] for DriveAssign.cmd

- Create Drives.txt and place it in your $oem$ folder

DriveAssign.cmd

cdmow @ HID
@echo off

DISKPART /s drives.txt

exit

Drives.txt

select volume 0
assign letter=Z noerr
select volume 1
assign letter=Y noerr
select volume 2
assign letter=C noerr
select volume 3
assign letter=D noerr

cmdlines.txt

[COMMANDS]
"DriveAssign.cmd"
"useraccounts.cmd"
"RunOnceEx.cmd"
"VMware.cmd"

Note that your CD/DVD drive will show up first as volume 0 or 1, and then you other drives in order. You can check this out first by using the the diskpart command and then "list" which will show you the corresponding volumes on your system.

Hope this helps.

Link to comment
Share on other sites

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