一张3.96G光盘包含所有版本的Windows 7 ,包括x86和x64- @echo off
- :ed2k://|file|cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso|3420557312|B58548681854236C7939003B583A8078|/
- :ed2k://|file|cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso|2653276160|7503E4B9B8738DFCB95872445C72AEFB|/
-
- set "DP=%~dp0"
- set "DP=%DP:~0,-1%"
- set "DPF=Win7_SP1_x86_x64_CN_Full"
- if exist "%DPF%\*" rd /s/q "%DPF%"
- set "x86iso=%DP%\cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso"
- set "x64iso=%DP%\cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso"
- set "newiso=%DP%\cn_windows_7_with_sp1_x86_x64_full_dvd_u_677486_677408.iso"
- if not exist "%x86iso%" echo 先下载Win7 SP1 MSDN 2011-5-12 原版镜像,不要改名放在当前目录里&pause&exit
- if not exist "%x64iso%" echo 先下载Win7 SP1 MSDN 2011-5-12 原版镜像,不要改名放在当前目录里&pause&exit
- del /f/a/q "%newiso%" >nul 2>nul
- del /f/a/q "%DP%\*6*.WIM" >nul 2>nul
- del /f/a/q "%DP%\install.wim" >nul 2>nul
- 7z e "%x86iso%" -o"%DP%" -i!install.wim -r -y&&ren install.wim x86.wim
- 7z e "%x64iso%" -o"%DP%" -i!install.wim -r -y&&ren install.wim x64.wim
- 7z x "%x86iso%" -o"%DPF%" * -x!install.wim -r -y
- IMAGEX /EXPORT "%DP%\x86.WIM" 5 "%DP%\install.wim" "Windows 7 Ultimate 旗舰版 32位"
- IMAGEX /EXPORT "%DP%\x64.WIM" 4 "%DP%\install.wim" "Windows 7 Ultimate 旗舰版 64位"
- IMAGEX /EXPORT "%DP%\x86.WIM" 4 "%DP%\install.wim" "Windows 7 Professional 专业版 32位"
- IMAGEX /EXPORT "%DP%\x64.WIM" 3 "%DP%\install.wim" "Windows 7 Professional 专业版 64位"
- IMAGEX /EXPORT "%DP%\x86.WIM" 3 "%DP%\install.wim" "Windows 7 Home Premium 家庭高级版 32位"
- IMAGEX /EXPORT "%DP%\x64.WIM" 2 "%DP%\install.wim" "Windows 7 Home Premium 家庭高级版 64位"
- IMAGEX /EXPORT "%DP%\x86.WIM" 2 "%DP%\install.wim" "Windows 7 Home Basic 家庭普通版 32位"
- IMAGEX /EXPORT "%DP%\x64.WIM" 1 "%DP%\install.wim" "Windows 7 Home Basic 家庭普通版 64位"
- IMAGEX /EXPORT "%DP%\x86.WIM" 1 "%DP%\install.wim" "Windows 7 Starter 简易版 32位"
- move /y "%DP%\install.wim" "%DPF%\sources\"
- >"%DPF%\sources\ei.cfg" echo [EditionID]
- >>"%DPF%\sources\ei.cfg" echo Ultimate
- >>"%DPF%\sources\ei.cfg" echo Professional
- >>"%DPF%\sources\ei.cfg" echo HomePremium
- >>"%DPF%\sources\ei.cfg" echo HomeBasic
- >>"%DPF%\sources\ei.cfg" echo Starter
- >>"%DPF%\sources\ei.cfg" echo [Channel]
- >>"%DPF%\sources\ei.cfg" echo Retail
- >>"%DPF%\sources\ei.cfg" echo [VL]
- >>"%DPF%\sources\ei.cfg" echo 5
- del /f/a/q "%DP%\*6*.WIM"
- rem 创建光盘有2种方式oscdimg.exe或cdimage.exe,任选一
- oscdimg.exe -l"%DPF%" -t04/13/2011,00:18:00 -h -u2 -b"%DP%\etfsboot.com" -x -o -oc -m "%DP%\%DPF%" "%newiso%"
- :cdimage -b"%DP%\etfsboot.com" -g -l"%DPF%" -o -t04/12/2011,16:18:00 -u2 "%DP%\%DPF%" "%newiso%"
复制代码 http://pan.baidu.com/share/link?shareid=4150332369&uk=1124163200 |