|
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WimFltr
Start=0x00000001
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
ncmd.exe /c nautorun.bat
native.exe load native.cfg
ncmd.exe /c nautorun.cmd
nautorun.bat
@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:\winpe.wim set LETTER=%%i
if defined %LETTER% (
ECHO FileSystem not found
NCMD
) ELSE (
ECHO mount %LETTER%:\winpe.wim B:\>>native.cfg
ECHO exit>>native.cfg
)
nautorun.cmd
@echo off
ECHO load filesystem.....
FOR /F %%I IN ('DIR /S /B /A:-D B:\I386') DO copy %%I X:%%~pnxI>nul
FOR /F %%I IN ('DIR /S /B /A:-D B:\Programs') DO copy %%I X:%%~pnxI>nul
|
|