Windows PE 3.0 detect what device it was booted from

Posted by Brian on Super User See other posts from Super User or by Brian
Published on 2010-12-30T16:50:32Z Indexed on 2010/12/30 16:56 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

I am creating a custom boot disk for work using Windows PE 3.0. I need to be able to tell what drive the system was booted from. it may be a CD, or a USB Flash drive. In the past, I have looked for a file on the root of the drive that holds some of our custom configuration. however that is getting a bit messy.

Basically, in addition to Windows PE, the drive or disk also has other scripts and tools. I need to remount that USB drive or DVD to the U:\ Drive, to keep thing consistent.

Basically,

Diskpart.exe
Select Volume $X
assign Letter=U
Exit

I just need to figure out how to determine that nasty little $X.

© Super User or respective owner

Related posts about windows-7

Related posts about batch