universal cd&usb boot for winpe?

5 replies [Last post]
Nights
Nights's picture
Offline
Apprentice
Joined: 2009/08/12

hey im havin a small problem with winpe where the CD drive letter on different computers isnt always gonna be D:\ and the USB isnt gonna always be H:\ is there a way thru batch i can have it find the cd drive letter then use it, and same for the USB drive letter for which the drive is plugged into?i was thinking something like:

set cddrive=d:\

then for the program i have autostart it would say in the startnet.bat in the boot.wim under windows\system32

%CDDRIVE%\(foldername)\(Programname.exe)

would that work or would i need to something like

CDROM1=D:\
CDROM2=E:\

and if so how does that work exactly? also need this to work for usb if possible

Update: neither worked.. any ideas?

Photobucket