本帖最后由 sairen139 于 2023-6-6 22:54 编辑
制作p驱双镜像vdf的内存系统之制作启动小镜像vdf抓取文件和处理注册表最便捷的批处理
xcopy %~p0\EFI\BOOT D:\aaaaaaaaaayindaoWindows10VDF\EFI\BOOT\ set SrcDrv=c: set DstDrv=D:\aaaaaaaaaayindaoWindows10VDF md %DstDrv%\windows\boot\Fonts cd /d %DstDrv%\windows\boot\Fonts copy %SrcDrv%\windows\boot\Fonts\msyh_boot.ttf md %DstDrv%\windows\inf cd /d %DstDrv%\windows\inf copy %SrcDrv%\windows\inf\errata.inf md %DstDrv%\windows\system32 cd /d %DstDrv%\windows\system32 copy %SrcDrv%\windows\system32\apisetschema.dll copy %SrcDrv%\windows\system32\BOOTVID.DLL copy %SrcDrv%\windows\system32\C_936.NLS copy %SrcDrv%\windows\system32\ci.dll copy %SrcDrv%\windows\system32\hal.dll copy %SrcDrv%\windows\system32\kd.dll copy %SrcDrv%\windows\system32\l_intl.nls copy %SrcDrv%\windows\system32\ntoskrnl.exe copy %SrcDrv%\windows\system32\PSHED.DLL copy %SrcDrv%\windows\system32\winload.efi md %DstDrv%\windows\system32\CodeIntegrity cd /d %DstDrv%\windows\system32\CodeIntegrity copy %SrcDrv%\windows\system32\CodeIntegrity\driver.stl md %DstDrv%\windows\system32\config Reg save HKLM\system %DstDrv%\Windows\system32\config\SYSTEM /y md %DstDrv%\windows\system32\drivers cd /d %DstDrv%\windows\system32\drivers xcopy /s %SrcDrv%\windows\system32\drivers reg load hklm\sys %DstDrv%\Windows\system32\config\SYSTEM
for /f "tokens=3* delims= " %%a in ('reg query HKLM\sys\MountedDevices /v \Dosdevices\Z:') do ( reg add HKLM\sys\MountedDevices /v \Dosdevices\C: /t REG_BINARY /d %%a /f) reg delete HKLM\sys\MountedDevices /v \Dosdevices\Z: /f
reg unload HKLM\sys DEL %DstDrv%\windows\system32\config /A:HS /F /Q pause >nul
这引导镜像是我苹果电脑上的对windows10windows81实验结果完全可以启动RamOS进入正常的系统桌面进行使用!
|