ZEUS__, on 07 February 2013 - 12:40 PM, said:
Check this line:
Quote
It assigns a drive letter value to the variable CDROM IF it can find the file \sources\install.wim.
It seems like this file is NOT found (and thus the drive letter is not assigned)
WHO wrote that batch?
It is seemingly missing some error control and is all in all more complex than needed.
Change this:
::@echo off for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i: echo Found CD-Rom as drive %CDROM%
to this:
::@echo off SETLOCAL ENABLEEXTENSIONS for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i: echo Found CD-Rom as drive %CDROM% PAUSE IF NOT DEFINED CDROM SET /P CDROM=Enter drive letter SET CDROM=%CDROM%: SET CDROM=%CDROM:::=:% SET CDROM PAUSE
What happens?
jaclaz



Help
Back to top











