title: How can I detect the drive letter of a booted USB drive from script?
body: <p>I'm launching WinPE 2 from a bootable UFD, and I need to detect the drive letter in order to tell ImageX where to find the WIM.  However, depending on the machine I'm imaging, there are different mounted drives.</p>
  
  <p>I need a way to consistently mount the UFD at, say, P: or something.  Is there a way to detect the letter of the drive from which the machine was booted, or another way to pass the location of my WIM file to a variable accessible from startnet.cmd?</p>
  
  <p>Here's someone else with the same issue over at TechNet.</p>
  
  <p><a href="http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/3e8bb8db-a1c6-40be-b4b0-58093f4833be?prof=required#" rel="noreferrer">http://social.technet.microsoft.com/Forums/en-US/itprovistadeployment/thread/3e8bb8db-a1c6-40be-b4b0-58093f4833be?prof=required#</a></p>