merowinger
asked on
Determine CD/DVD or USB Stick Drive Letter in Windows PE
I need some help.
I create a vista unattended, which works fine.
Now i want a menu in windows pe which asks to user to really reinstall vista!
For this i wrote a batch file which will be executed from a synchronous commands in my autounattend.xml.
The problem is that i need the drive letter of the usb- or cd/dvd drive where the batch file is located!
In Phase 4 and 7 this was no problem....i executed the below listed code and got a environmental varibale set to the drive where the appsroot.txt file is located! But this does not seem to work in windows pe!
cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m"
I create a vista unattended, which works fine.
Now i want a menu in windows pe which asks to user to really reinstall vista!
For this i wrote a batch file which will be executed from a synchronous commands in my autounattend.xml.
The problem is that i need the drive letter of the usb- or cd/dvd drive where the batch file is located!
In Phase 4 and 7 this was no problem....i executed the below listed code and got a environmental varibale set to the drive where the appsroot.txt file is located! But this does not seem to work in windows pe!
cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
On this site there will be used the same command line, but in combination with winpeshl.ini!
Is this the trick?
http://firegeier.unattended-sponsor.de/en/drivers_from_stick_or_dvd.html