會自動先搜索 install.wim ,如果找不到,會再找 install.esd 或 install.swm、1nstall2.swm...。
setup.cmd
---------------------------------------------
@echo off
for %%a in (c d e f g h i j k l m n o p q r s t u v w y z) do (if exist %%a:sourceswin7install.wim x:sources7setup.exe /installfrom:%%a:sourceswin7install.wim &exit)
for %%k in (c d e f g h i j k l m n o p q r s t u v w y z) do (if exist %%k:sourceswin7install.esd x:sources7setup.exe /installfrom:%%k:sourceswin7install.esd &exit)
for %%b in (c d e f g h i j k l m n o p q r s t u v w y z) do (if exist %%b:sourceswin7install.swm x:sources7setup.exe /installfrom:%%b:sourceswin7install.swm)
exit
---------------------------------------------- 紅色字體為資料夾可修改,BCD也必須修改一至 win8,win8.1就依樣劃葫蘆