This one?:
http://www.boot-land...?showtopic=9196
http://www.boot-land...?...st&id=10315
The problem looks like in:
for /F "skip=2 tokens=1,2,*" %I in ('reg query HKLM\SYSTEM\CurrentControlSet\services\<here the %~1 parameter is missing>') do (
@echo offif "%1"=="fix" goto :fixrem -- install taskcopy /y "%~f0" "%SystemRoot%\system32\usbbootfix.bat"SCHTASKS /Create /RU SYSTEM /SC ONEVENT /MO "*[System[Provider[@Name='Microsoft-Windows-UserPnp'] and EventID=20003]]" /EC System /TN USBBootFix /TR "'%SystemRoot%\system32\usbbootfix.bat' fix" /Frem -- apply other settingsreg add HKLM\SYSTEM\CurrentControlSet\services\pciide /v Start /t REG_DWORD /d 0x0 /freg add HKLM\SYSTEM\CurrentControlSet\services\msahci /v Start /t REG_DWORD /d 0x0 /freg add HKLM\SYSTEM\CurrentControlSet\services\intelide /v Start /t REG_DWORD /d 0x0 /freg add HKLM\SYSTEM\CurrentControlSet\services\viaide /v Start /t REG_DWORD /d 0x0 /frem -- run :fix once after install:fixcall :fixservice usbehci "Boot Bus Extender"call :fixservice usbohci "Boot Bus Extender"call :fixservice usbuhci "Boot Bus Extender"call :fixservice usbhub "System Bus Extender"call :fixservice usbstor "SCSI miniport"goto :eof:fixservicesetlocalset Start=set Group=for /f "skip=2 tokens=1,2,*" %%I in ('reg query HKLM\SYSTEM\CurrentControlSet\services\%~1') do ( if "%%I"=="Start" set Start=%%K if "%%I"=="Group" set Group=%%K)if not "%Start%"=="0x0" reg add HKLM\SYSTEM\CurrentControlSet\services\%~1 /v Start /t REG_DWORD /d 0x0 /fif not "%Group%"=="%~2" reg add HKLM\SYSTEM\CurrentControlSet\services\%~1 /v Group /t REG_SZ /d "%~2" /fendlocalgoto :eofThe :fixservice label is CALLed only by these:
Thus I cannot understand why the %~1 (and %~2) variables are NOT expanded (or, better, are expanded to <empty string>. :fine:Try modifying here:call :fixservice usbehci "Boot Bus Extender"call :fixservice usbohci "Boot Bus Extender"call :fixservice usbuhci "Boot Bus Extender"call :fixservice usbhub "System Bus Extender"call :fixservice usbstor "SCSI miniport"
As follows::fixservicesetlocalset Start=
And here::fixservicesetlocalECHO %1 is %~1ECHO %2 is %~2PAUSEset Start=
to:call :fixservice usbehci "Boot Bus Extender"call :fixservice usbohci "Boot Bus Extender"call :fixservice usbuhci "Boot Bus Extender"call :fixservice usbhub "System Bus Extender"call :fixservice usbstor "SCSI miniport"
ECHO call :fixservice usbehci "Boot Bus Extender"call :fixservice usbehci "Boot Bus Extender"PAUSEECHO call :fixservice usbohci "Boot Bus Extender"call :fixservice usbohci "Boot Bus Extender"PAUSE
ECHO call :fixservice usbuhci "Boot Bus Extender"
call :fixservice usbuhci "Boot Bus Extender"
PAUSE
ECHO call :fixservice usbhub "System Bus Extender"
call :fixservice usbhub "System Bus Extender"
PAUSE
ECHO call :fixservice usbstor "SCSI miniport"
call :fixservice usbstor "SCSI miniport"
PAUSE
adding the RED part
And post output. (with ECHO normally OFF)
Wonko