Jump to content

WinPE 2.1 Remapping startup DVD Drive


Recommended Posts

Posted

Is it possible to remap the DVD-ROM or CD-ROM drive letter where WinPE 2.1 starts up from? I don't mean the RAMDisk X: drive, but I mean where WinPE 2.1 starts up from.

I am creating an automated DVD restore image using ImageX and diskpart so that I don't have to purchase ghost just for recovering the PC.

Any possiblities through a script or a batch file?


Posted

Here's a batch file I use from startnet.cmd to change the CD / DVD drive to K:

@echo off
echo list volume > X:\ListCD.txt
FOR /F "tokens=2,4" %%i IN ('diskpart /s X:\ListCD.txt') DO @IF /I %%j == CD_ROM SET CDROMVOL=%%i
IF DEFINED CDROMVOL echo select volume %CDROMVOL% > X:\ChangeCD.txt
IF DEFINED CDROMVOL echo assign letter=K: >> X:\ChangeCD.txt
IF DEFINED CDROMVOL diskpart /s X:\ChangeCD.txt

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