无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 35651|回复: 192
打印 上一主题 下一主题

[分享] 从"五秒制作完成网络骨头版pe"瞎改的从原版iso制作网络骨头版pe批处理0422

    [复制链接]
跳转到指定楼层
1#
发表于 2020-12-12 23:47:44 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 江南一根葱 于 2021-4-22 21:21 编辑


保留了原先的批处理。
20201214更新
20210114更新
  • 支持32位iso(win10),文件取自
  • 微软的iso包
  • @slore 的winxshell
  • @wintoflash 盐发的grubfm包内
  • @sairen139 帖中的批处理
  • 史上最伟大网管 if then的构思

20210117更新
  • 制作完到桌面直接支持网络,可以进行ping测试
  • 支持ipxefm网启正常使用

20210306更新
  • 主批处理改用@lps4290118#的内容,初步测试使用正常
  • 我自身不懂摆弄pe,欢迎各位提供各种姿势。。。
20210316更新
  • 白名单添加wsock32.dll ncryptprov.dll mode.com ureg.dll (自用:运行某多播程序)
  • 为了能操作注册表,添加nsudo64.exe、nsudo32.exe,文件和语法取自RAMOS一键批处理多合一
  • 挂载注册表单元法改防火墙服务为手动(自用: 也可用132#的方法)
20210328更新
  • 更换explorer++为中文汉化版
20210406更新
  • 增加startnet.cmd,使用132#的导入注册表方法关闭防火墙,有了startnet.cmd,更接近微软的"官方PE"
20210418更新
  • 生成的pe会转圈圈
  • 生成后直接打包成iso(方便虚拟机同步测试)
20210422更新
  • 加入subst.exe(网克pe需要)
  • 整理目录

长期更新下载地址: makemini.txt (52 Bytes, 下载次数: 354)


评分

参与人数 7无忧币 +40 收起 理由
纯脆entropy + 5 赞一个!
zihaoo + 10 很给力!
d9o + 5 很给力!
某些人 + 5 赞一个!
gtc + 5 赞一个!
freesoft00 + 5
parsons + 5 赞一个!

查看全部评分

来自 2#
发表于 2021-3-5 14:58:58 | 只看该作者
sairen139 发表于 2020-12-14 14:58
这个是新版批处理的内容:

copy Winre.wim BOOT.WIM /y

下面继续简化语句之后就一步生成excel.txt了,不知道两们老大有没测试过这种写法,
可惜虽然减少了临时文件的写入读取,但速度却更慢了,不得不吐槽for命令的低效。
不过我还是喜欢这种简洁的写法,改成这样自用了,慢一些就慢一些吧,也不差这点时间。


@echo off && cd /d %~dp0
if exist winre.wim (
echo 发现winre.wim!准备制作!
set wimfile=winre.wim
goto start
) else (
echo 没有发现winre.wim!尝试从boot.wim制作!
goto checkwim
)

:start
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
if exist excel.txt del excel.txt /f /q
for /f "delims=" %%i in ('bin\wimlib dir %wimfile% 1 ^| find "." ^| findstr /vil "simsun.ttc ping.exe wpeinit.exe SortDefault 3ware.inf halmacpi.dll acpi.inf acpidev.inf acpipagr.inf acpitime.inf adp80xx.inf amdgpio2.inf amdi2c.inf amdsata.inf amdsbs.inf arcsas.inf basicdisplay.inf basicrender.inf battery.inf buttonconverter.inf c_apo.inf c_avc.inf c_battery.inf c_biometric.inf c_cdrom.inf c_computeaccelerator.inf c_computer.inf c_diskdrive.inf c_display.inf c_extension.inf c_firmware.inf c_hdc.inf c_hidclass.inf c_image.inf c_keyboard.inf c_legacydriver.inf c_mcx.inf c_media.inf c_mediumchanger.inf c_memory.inf c_modem.inf c_monitor.inf c_mouse.inf c_mtd.inf c_multifunction.inf c_multiportserial.inf c_net.inf c_netdriver.inf c_netservice.inf c_nettrans.inf c_ports.inf c_processor.inf c_proximity.inf c_sbp2.inf c_scmdisk.inf c_scmvolume.inf c_scsiadapter.inf c_sdhost.inf c_smartcard.inf c_smartcardfilter.inf c_smartcardreader.inf c_smrdisk.inf c_smrvolume.inf c_sslaccel.inf c_swcomponent.inf c_swdevice.inf c_system.inf c_ucm.inf c_unknown.inf c_usb.inf c_usbdevice.inf c_usbfn.inf c_volsnap.inf c_volume.inf c_wceusbs.inf dc21x4vm.inf disk.inf dwup.inf e2xw10x64.inf ehstortcgdrv.inf errata.inf errdev.inf genericusbfn.inf hal.inf halextintclpiodma.inf halextpl080.inf hdaudbus.inf hdaudio.inf hdaudss.inf hidbatt.inf hiddigi.inf hidi2c.inf hidinterrupt.inf hidserv.inf hidspi_km.inf hidvhf.inf hpsamd.inf iagpio.inf iai2c.inf iaLPSS2i_GPIO2_BXT_P.inf iaLPSS2i_GPIO2_CNL.inf iaLPSS2i_GPIO2_GLK.inf iaLPSS2i_GPIO2_SKL.inf iaLPSS2i_I2C_BXT_P.inf iaLPSS2i_I2C_CNL.inf iaLPSS2i_I2C_GLK.inf iaLPSS2i_I2C_SKL.inf ialpssi_gpio.inf ialpssi_i2c.inf iastorav.inf iastorv.inf input.inf ipmidrv.inf ipoib6x.inf iscsi.inf ItSas35i.inf kdnic.inf keyboard.inf lltdio.inf lsi_sas.inf lsi_sas2i.inf lsi_sas3i.inf lsi_sss.inf machine.inf mausbhost.inf mchgr.inf megasas.inf megasas2i.inf megasas35i.inf megasr.inf mf.inf mlx4_bus.inf mshdc.inf msmouse.inf msports.inf mssmbios.inf mtconfig.inf mvumis.inf ndisimplatform.inf ndisimplatformmp.inf ndisuio.inf ndisvirtualbus.inf net1ix64.inf net1yx64.inf net40i68.inf net44amd.inf net7400-x64-n650.inf net7500-x64-n650f.inf net7800-x64-n650f.inf net9500-x64-n650f.inf netax88179_178a.inf netax88772.inf nete1e3e.inf nete1g3e.inf netefe3e.inf netg664.inf netimm.inf netip6.inf netjme.inf netk57a.inf netl160a.inf netl1e64.inf netl260a.inf netloop.inf netmscli.inf netmyk64.inf netnb.inf netnvma.inf netnwifi.inf netrasa.inf netrass.inf netrast.inf netrtl64.inf netserv.inf netsstpa.inf nett4x64.inf nettcpip.inf netvf63a.inf netvg63a.inf netxex64.inf netxix64.inf npsvctrig.inf nvdimm.inf nvraid.inf pci.inf percsas2i.inf percsas3i.inf pmem.inf puwk.inf qd3x64.inf ramdisk.inf rawsilo.inf rdshup.inf rspndr.inf rt640x64.inf rtux64w10.inf sbp2.inf sceregvl.inf scmbus.inf scmvolume.inf scsidev.inf sdbus.inf sdstor.inf secrecs.inf sisraid2.inf sisraid4.inf SmartSAMD.inf smrdisk.inf smrvolume.inf spaceport.inf stexstor.inf stornvme.inf storufs.inf swenum.inf uaspstor.inf uefi.inf ufxchipidea.inf ufxsynopsys.inf umbus.inf umpass.inf unknown.inf usb.inf usbhub3.inf usbnet.inf usbport.inf usbser.inf usbstor.inf usbxhci.inf vdrvroot.inf vhdmp.inf virtdisk.inf volmgr.inf volsnap.inf volume.inf vsmraid.inf vstxraid.inf wdmaudiocoresystem.inf wdmvsc.inf whyperkbd.inf wmiacpi.inf wnetvsc.inf wstorflt.inf wstorvsc.inf wvmbus.inf wvmbushid.inf wvmbusvideo.inf ykinx64.inf L2Schemas aero.msstyles regedit aclui.dll advapi32.dll aepic.dll apisetschema.dll asycfilt.dll atl.dll authz.dll basesrv.dll bcd.dll bcdboot.exe bcdedit.exe bcryptprimitives.dll BFE.DLL BOOTVID.DLL BrokerLib.dll cabinet.dll cdd.dll cfgmgr32.dll ci.dll clb.dll cmd.exe cmdext.dll combase.dll comdlg32.dll coml2.dll conhost.exe console.dll credui.dll cryptbase.dll cryptdll.dll cryptsp.dll bcrypt.dll crypt32.dll cryptsvc.dll msxml ncrypt.dll rasapi32.dll wldp.dll csrsrv.dll csrss.exe C_1252.NLS C_437.NLS C_936.NLS d2d1.dll d3d11.dll dab.dll dabapi.dll dbgcore.dll dbghelp.dll devobj.dll devrtl.dll dhcpcore.dll dhcpcore6.dll dhcpcsvc.dll dhcpcsvc6.dll diskpart.exe dllhost.exe dnsapi.dll dnsrslvr.dll dpapi.dll dpapisrv.dll drvinst.exe drvload.exe drvsetup.dll drvstore.dll dsparse.dll dsrole.dll dui70.dll duser.dll dwmapi.dll DWrite.dll dxgi.dll eappprxy.dll EventAggregation.dll feclient.dll find.exe findstr.exe FirewallAPI.dll fltLib.dll fmifs.dll fontdrvhost.exe format.com fsutil.exe fsutilext.dll fveapi.dll fwbase.dll fwpolicyiomgr.dll FWPUCLNT.DLL gdi32.dll gdi32full.dll gpapi.dll hal.dll hhsetup.dll iertutil.dll ifsutil.dll IKEEXT.DLL imagehlp.dll imageres.dll imapi2.dll imm32.dll ipconfig.exe IPHLPAPI.DLL joinutil.dll KBDUS.DLL kd.dll KerbClientShared.dll kerberos.dll kernel.appcore.dll kernel32.dll KernelBase.dll keyiso.dll ksuser.dll ktmw32.dll l2nacp.dll linkinfo.dll lmhsvc.dll locale.nls logoncli.dll lsasrv.dll lsass.exe lsm.dll l_intl.nls mfc42u.dll mpr.dll MPSSVC.dll msasn1.dll msctf.dll msftedit.dll msimg32.dll msports.dll msprivs.dll msv1_0.dll msvcp110_win.dll msvcp_win.dll msvcrt.dll mswsock.dll ncsi.dll net.exe net1.exe netapi32.dll netbios.dll netcfgx.dll netjoin.dll netlogon.dll netmsg.dll netprovfw.dll NetSetupApi.dll NetSetupEngine.dll NetSetupSvc.dll netshell.dll netutils.dll newdev.dll ninput.dll nlaapi.dll nlasvc.dll normaliz.dll notepad.exe nrpsrv.dll nsi.dll nsisvc.dll ntasn1.dll ntdll.dll ntdsapi.dll ntlanman.dll NtlmShared.dll ntmarta.dll ntoskrnl.exe ole32.dll oleacc.dll oleaccrc.dll oleaut32.dll oledlg.dll OneCoreCommonProxyStub.dll onex.dll osuninst.dll powrprof.dll profapi.dll propsys.dll psapi.dll PSHED.DLL rasadhlp.dll rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll rsaenh.dll rundll32.exe samcli.dll samsrv.dll schannel.dll schema.dat sechost.dll secur32.dll services.exe setupapi.dll SHCore.dll shell32.dll shlwapi.dll shutdownux.dll slc.dll SmiEngine.dll smss.exe spfileq.dll spinf.dll sppc.dll srvcli.dll srvsvc.dll sscore.dll sspicli.dll sspisrv.dll stdole2.tlb Storprop.dll svchost.exe sxs.dll sxssrv.dll sysclass.dll sysntfy.dll SystemEventsBrokerServer.dll takeown.exe taskmgr.exe TextShaping.dll ucrtbase.dll uexfat.dll ufat.dll ulib.dll umpdc.dll umpnpmgr.dll umpo.dll unattend.dll untfs.dll urlmon.dll user32.dll userenv.dll usp10.dll UXInit.dll uxtheme.dll vds.exe vdsbas.dll vdsdyn.dll vdsldr.exe vdsutil.dll vdsvd.dll vds_ps.dll version.dll virtdisk.dll webio.dll wevtapi.dll wevtsvc.dll wimgapi.dll wimserv.exe win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll Windows.FileExplorer.Common.dll windows.storage.dll CatRoot 2\drivers DriverStore WindowsCodecs.dll winhttp.dll wininet.dll wininit.exe wininitext.dll winlogon.exe winmm.dll winmmbase.dll winnlsres.dll winnsi.dll winpeshl winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll WinTypes.dll wkscli.dll wkssvc.dll wlanapi.dll wlanhlp.dll wlanmsm.dll wlansec.dll wlansvc.dll wlanutil.dll Wldap32.dll wmiclnt.dll wpeutil ws2_32.dll wshhyperv.dll wsock32.dll wtsapi32.dll xcopy.exe xmllite.dll winload driver.stl winsxs"') do echo delete --force --recursive "%%i">>excel.txt
for /f "delims=" %%i in ('bin\wimlib dir %wimfile% 1 --path=windows\winsxs ^| find "." ^| findstr /vi ".*_microsoft.windows.c..-controls.resources_.*_zh-cn .*_microsoft.windows.common-controls .*_microsoft.windows.gdiplus_.*_none Manifests.*_microsoft.windows.i..utomation.proxystub Manifests.*_microsoft.windows.isolationautomation Manifests.*_microsoft.windows.systemcompatible"') do echo delete --force --recursive "%%i">>excel.txt

echo.
echo 正在增删削减%wimfile%包里的文件制作pe过程中,请您稍微等待。。。
bin\wimlib dir %wimfile% 1 --path=Windows\SysWOW64 | find ".dll" >NUL && (set FD=x64) || (set FD=x86)
bin\wimlib update %wimfile%<excel.txt>NUL
bin\wimlib update %wimfile%<%FD%\add2wim.txt>NUL
bin\wimlib optimize %wimfile%

set /a endS=%time:~6,2%
set /a endM=%time:~3,2%
echo %time%
set /a diffS_=%endS%-%startS%
set /a diffM_=%endM%-%startM%
echo cost:%diffM_% %diffS_%
echo.
del /q *.txt
set output=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%wimfile%
ren %wimfile% %output%
echo 感谢您的等待,现在PE已经制作完成,%output%就是你的网络骨头版pe成品!

echo.
PAUSE

:checkwim
if exist boot.wim (
echo 发现boot.wim,直接制作,准备删除卷1……
bin\wimlib delete boot.wim 1 --check
set wimfile=boot.wim
goto:start
)
for /f %%i in ('dir /b %~dp0*.iso') do set iso=%%i
if "%iso%"=="" exit
echo 没有发现boot.wim,正在尝试从iso中解压出boot.wim....
bin\7z.exe e -o%~dp0 -aoa  %~dp0%iso% sources/boot.wim
set wimfile=boot.wim&&goto:start

点评

我倒想把for后面的那一堆东西弄到一个txt里,比如win10x86_64.txt ,其它系统就搞个win7x86_64.txt 现在这样看着非常蛋疼,不知道有没有办法实现  详情 回复 发表于 2021-3-5 17:45
如果觉得for慢,可以引进sed.exe,这个第三方的sed.exe可以一次性添加delete —force —recursive这个操作瞬间完成,缩短很多时间。  详情 回复 发表于 2021-3-5 15:44
回复

使用道具 举报

3#
发表于 2020-12-13 00:18:22 | 只看该作者
谢谢分享
回复

使用道具 举报

4#
发表于 2020-12-13 01:44:58 | 只看该作者
回复

使用道具 举报

5#
发表于 2020-12-13 08:12:25 | 只看该作者
下载个看看,谢谢!
回复

使用道具 举报

6#
发表于 2020-12-13 11:14:33 | 只看该作者
本帖最后由 parsons 于 2020-12-13 11:19 编辑

在 VBox 亲测制作完的boot.wim可启动 可上網


回复

使用道具 举报

7#
发表于 2020-12-13 11:51:36 | 只看该作者
本帖最后由 xhwfq 于 2020-12-13 16:01 编辑

问题版已删除,以下是修正版。
--------------------------------------------------------------------------------------
@echo off& cd /d %~dp0
if exist %~dp0boot.wim goto:start

for /f %%i in ('dir /b %~dp0*.iso') do set iso=%%i
if "%iso%"=="" exit

echo 正在解压出boot.wim....
%~dp0bin\7z.exe e -o%~dp0 -aoa  %~dp0%iso% sources/boot.wim
echo.

:start
call:set_lst
set dfr=delete --force --recursive

echo 正在列表boot.wim第1分卷...
%~dp0bin\wimlib dir %~dp0boot.wim 1|find "." >List1.txt
findstr /v %lst% List1.txt >List2.txt
(for /f "delims=" %%i in (List2.txt) do (echo %dfr% "%%i")) >List3.txt

echo.
echo 正在增删boot.wim包里的文件...
%~dp0bin\wimlib delete boot.WIM 1 --check
%~dp0bin\wimlib update boot.WIM <List3.txt
%~dp0bin\wimlib update boot.WIM <add2wim\add2wim.txt
%~dp0bin\wimlib optimize boot.WIM

del *.txt
echo 完成!!!
timeout 5 >nul
exit

:set_lst
set lst="simsun.ttc ..."
goto:eof

点评

你这个好像删的文件不对  详情 回复 发表于 2020-12-13 14:14
回复

使用道具 举报

8#
发表于 2020-12-13 12:27:33 | 只看该作者
感谢分享
回复

使用道具 举报

9#
 楼主| 发表于 2020-12-13 14:14:54 | 只看该作者
xhwfq 发表于 2020-12-13 11:51
@echo off& cd /d %~dp0
if exist %~dp0boot.wim goto:start

你这个好像删的文件不对

点评

修正了  详情 回复 发表于 2020-12-13 15:00
回复

使用道具 举报

10#
发表于 2020-12-13 15:00:46 | 只看该作者
江南一根葱 发表于 2020-12-13 14:14
你这个好像删的文件不对

修正了

点评

可以了,不过还是多了个exit,你埋坑了  详情 回复 发表于 2020-12-13 15:10
回复

使用道具 举报

11#
 楼主| 发表于 2020-12-13 15:10:09 | 只看该作者

可以了,不过还是多了个exit,你埋坑了

点评

测试时加上的,忘记删掉了;D  详情 回复 发表于 2020-12-13 15:27
回复

使用道具 举报

12#
发表于 2020-12-13 15:27:00 | 只看该作者
江南一根葱 发表于 2020-12-13 15:10
可以了,不过还是多了个exit,你埋坑了

测试时加上的,忘记删掉了;D
回复

使用道具 举报

13#
发表于 2020-12-13 23:07:30 | 只看该作者
改的很好,只是为什么不基于最新版的批处理来改。而是基于原先老的批处理来改呢?

点评

不知道新版是哪个类,我想把列表独立出来,win7win8之类的文件列表不一样的吧  详情 回复 发表于 2020-12-14 09:05
回复

使用道具 举报

14#
 楼主| 发表于 2020-12-14 09:05:01 | 只看该作者
sairen139 发表于 2020-12-13 23:07
改的很好,只是为什么不基于最新版的批处理来改。而是基于原先老的批处理来改呢?

不知道新版是哪个类,我想把列表独立出来,win7win8之类的文件列表不一样的吧

点评

这个是新版批处理的内容: copy Winre.wim BOOT.WIM /y @echo off set /a startS=%time:~6,2% set /a startM=%time:~3,2% echo %time% %~dp0\wimlib dir winre.wim | find ".">1List.TXT %~dp0\wimlib dir  详情 回复 发表于 2020-12-14 14:58
回复

使用道具 举报

15#
发表于 2020-12-14 09:35:40 | 只看该作者
记号。关注中。。。
回复

使用道具 举报

16#
发表于 2020-12-14 14:58:32 | 只看该作者
江南一根葱 发表于 2020-12-14 09:05
不知道新版是哪个类,我想把列表独立出来,win7win8之类的文件列表不一样的吧

这个是新版批处理的内容:

copy Winre.wim BOOT.WIM /y
@echo off
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
%~dp0\wimlib dir winre.wim | find ".">1List.TXT
%~dp0\wimlib dir winre.wim --path=windows\winsxs | find ".">winsxsList.TXT
findstr /vil "simsun.ttc SortDefault 3ware.inf acpi.inf acpidev.inf acpipagr.inf acpitime.inf adp80xx.inf amdgpio2.inf amdi2c.inf amdsata.inf amdsbs.inf arcsas.inf basicdisplay.inf basicrender.inf battery.inf buttonconverter.inf c_apo.inf c_avc.inf c_battery.inf c_biometric.inf c_cdrom.inf c_computeaccelerator.inf c_computer.inf c_diskdrive.inf c_display.inf c_extension.inf c_firmware.inf c_hdc.inf c_hidclass.inf c_image.inf c_keyboard.inf c_legacydriver.inf c_mcx.inf c_media.inf c_mediumchanger.inf c_memory.inf c_modem.inf c_monitor.inf c_mouse.inf c_mtd.inf c_multifunction.inf c_multiportserial.inf c_net.inf c_netdriver.inf c_netservice.inf c_nettrans.inf c_ports.inf c_processor.inf c_proximity.inf c_sbp2.inf c_scmdisk.inf c_scmvolume.inf c_scsiadapter.inf c_sdhost.inf c_smartcard.inf c_smartcardfilter.inf c_smartcardreader.inf c_smrdisk.inf c_smrvolume.inf c_sslaccel.inf c_swcomponent.inf c_swdevice.inf c_system.inf c_ucm.inf c_unknown.inf c_usb.inf c_usbdevice.inf c_usbfn.inf c_volsnap.inf c_volume.inf c_wceusbs.inf dc21x4vm.inf disk.inf dwup.inf e2xw10x64.inf ehstortcgdrv.inf errata.inf errdev.inf genericusbfn.inf hal.inf halextintclpiodma.inf halextpl080.inf hdaudbus.inf hdaudio.inf hdaudss.inf hidbatt.inf hiddigi.inf hidi2c.inf hidinterrupt.inf hidserv.inf hidspi_km.inf hidvhf.inf hpsamd.inf iagpio.inf iai2c.inf iaLPSS2i_GPIO2_BXT_P.inf iaLPSS2i_GPIO2_CNL.inf iaLPSS2i_GPIO2_GLK.inf iaLPSS2i_GPIO2_SKL.inf iaLPSS2i_I2C_BXT_P.inf iaLPSS2i_I2C_CNL.inf iaLPSS2i_I2C_GLK.inf iaLPSS2i_I2C_SKL.inf ialpssi_gpio.inf ialpssi_i2c.inf iastorav.inf iastorv.inf input.inf ipmidrv.inf ipoib6x.inf iscsi.inf ItSas35i.inf kdnic.inf keyboard.inf lltdio.inf lsi_sas.inf lsi_sas2i.inf lsi_sas3i.inf lsi_sss.inf machine.inf mausbhost.inf mchgr.inf megasas.inf megasas2i.inf megasas35i.inf megasr.inf mf.inf mlx4_bus.inf mshdc.inf msmouse.inf msports.inf mssmbios.inf mtconfig.inf mvumis.inf ndisimplatform.inf ndisimplatformmp.inf ndisuio.inf ndisvirtualbus.inf net1ix64.inf net1yx64.inf net40i68.inf net44amd.inf net7400-x64-n650.inf net7500-x64-n650f.inf net7800-x64-n650f.inf net9500-x64-n650f.inf netax88179_178a.inf netax88772.inf nete1e3e.inf nete1g3e.inf netefe3e.inf netg664.inf netimm.inf netip6.inf netjme.inf netk57a.inf netl160a.inf netl1e64.inf netl260a.inf netloop.inf netmscli.inf netmyk64.inf netnb.inf netnvma.inf netnwifi.inf netrasa.inf netrass.inf netrast.inf netrtl64.inf netserv.inf netsstpa.inf nett4x64.inf nettcpip.inf netvf63a.inf netvg63a.inf netxex64.inf netxix64.inf npsvctrig.inf nvdimm.inf nvraid.inf pci.inf percsas2i.inf percsas3i.inf pmem.inf puwk.inf qd3x64.inf ramdisk.inf rawsilo.inf rdshup.inf rspndr.inf rt640x64.inf rtux64w10.inf sbp2.inf sceregvl.inf scmbus.inf scmvolume.inf scsidev.inf sdbus.inf sdstor.inf secrecs.inf sisraid2.inf sisraid4.inf SmartSAMD.inf smrdisk.inf smrvolume.inf spaceport.inf stexstor.inf stornvme.inf storufs.inf swenum.inf uaspstor.inf uefi.inf ufxchipidea.inf ufxsynopsys.inf umbus.inf umpass.inf unknown.inf usb.inf usbhub3.inf usbnet.inf usbport.inf usbser.inf usbstor.inf usbxhci.inf vdrvroot.inf vhdmp.inf virtdisk.inf volmgr.inf volsnap.inf volume.inf vsmraid.inf vstxraid.inf wdmaudiocoresystem.inf wdmvsc.inf whyperkbd.inf wmiacpi.inf wnetvsc.inf wstorflt.inf wstorvsc.inf wvmbus.inf wvmbushid.inf wvmbusvideo.inf ykinx64.inf L2Schemas aero.msstyles regedit aclui.dll advapi32.dll aepic.dll apisetschema.dll asycfilt.dll atl.dll authz.dll basesrv.dll bcd.dll bcdboot.exe bcdedit.exe bcryptprimitives.dll BFE.DLL BOOTVID.DLL BrokerLib.dll cabinet.dll cdd.dll cfgmgr32.dll ci.dll clb.dll cmd.exe cmdext.dll combase.dll comdlg32.dll coml2.dll conhost.exe console.dll credui.dll cryptbase.dll cryptdll.dll cryptsp.dll bcrypt.dll crypt32.dll cryptsvc.dll msxml ncrypt.dll rasapi32.dll wldp.dll csrsrv.dll csrss.exe C_1252.NLS C_437.NLS C_936.NLS d2d1.dll d3d11.dll dab.dll dabapi.dll dbgcore.dll dbghelp.dll devobj.dll devrtl.dll dhcpcore.dll dhcpcore6.dll dhcpcsvc.dll dhcpcsvc6.dll diskpart.exe dllhost.exe dnsapi.dll dnsrslvr.dll dpapi.dll dpapisrv.dll drvinst.exe drvload.exe drvsetup.dll drvstore.dll dsparse.dll dsrole.dll dui70.dll duser.dll dwmapi.dll DWrite.dll dxgi.dll eappprxy.dll EventAggregation.dll feclient.dll find.exe findstr.exe FirewallAPI.dll fltLib.dll fmifs.dll fontdrvhost.exe format.com fsutil.exe fsutilext.dll fveapi.dll fwbase.dll fwpolicyiomgr.dll FWPUCLNT.DLL gdi32.dll gdi32full.dll gpapi.dll hal.dll hhsetup.dll iertutil.dll ifsutil.dll IKEEXT.DLL imagehlp.dll imageres.dll imapi2.dll imm32.dll ipconfig.exe IPHLPAPI.DLL joinutil.dll KBDUS.DLL kd.dll KerbClientShared.dll kerberos.dll kernel.appcore.dll kernel32.dll KernelBase.dll keyiso.dll ksuser.dll ktmw32.dll l2nacp.dll linkinfo.dll lmhsvc.dll locale.nls logoncli.dll lsasrv.dll lsass.exe lsm.dll l_intl.nls mfc42u.dll mpr.dll MPSSVC.dll msasn1.dll msctf.dll msftedit.dll msimg32.dll msports.dll msprivs.dll msv1_0.dll msvcp110_win.dll msvcp_win.dll msvcrt.dll mswsock.dll ncsi.dll net.exe net1.exe netapi32.dll netbios.dll netcfgx.dll netjoin.dll netlogon.dll netmsg.dll netprovfw.dll NetSetupApi.dll NetSetupEngine.dll NetSetupSvc.dll netshell.dll netutils.dll newdev.dll ninput.dll nlaapi.dll nlasvc.dll normaliz.dll notepad.exe nrpsrv.dll nsi.dll nsisvc.dll ntasn1.dll ntdll.dll ntdsapi.dll ntlanman.dll NtlmShared.dll ntmarta.dll ntoskrnl.exe ole32.dll oleacc.dll oleaccrc.dll oleaut32.dll oledlg.dll OneCoreCommonProxyStub.dll onex.dll osuninst.dll powrprof.dll profapi.dll propsys.dll psapi.dll PSHED.DLL rasadhlp.dll rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll rsaenh.dll rundll32.exe samcli.dll samsrv.dll schannel.dll schema.dat sechost.dll secur32.dll services.exe setupapi.dll SHCore.dll shell32.dll shlwapi.dll shutdownux.dll slc.dll SmiEngine.dll smss.exe spfileq.dll spinf.dll sppc.dll srvcli.dll srvsvc.dll sscore.dll sspicli.dll sspisrv.dll stdole2.tlb Storprop.dll svchost.exe sxs.dll sxssrv.dll sysclass.dll sysntfy.dll SystemEventsBrokerServer.dll takeown.exe taskmgr.exe TextShaping.dll ucrtbase.dll uexfat.dll ufat.dll ulib.dll umpdc.dll umpnpmgr.dll umpo.dll unattend.dll untfs.dll urlmon.dll user32.dll userenv.dll usp10.dll UXInit.dll uxtheme.dll vds.exe vdsbas.dll vdsdyn.dll vdsldr.exe vdsutil.dll vdsvd.dll vds_ps.dll version.dll virtdisk.dll webio.dll wevtapi.dll wevtsvc.dll wimgapi.dll wimserv.exe win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll Windows.FileExplorer.Common.dll windows.storage.dll CatRoot 2\drivers DriverStore WindowsCodecs.dll winhttp.dll wininet.dll wininit.exe wininitext.dll winlogon.exe winmm.dll winmmbase.dll winnlsres.dll winnsi.dll winpeshl winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll WinTypes.dll wkscli.dll wkssvc.dll wlanapi.dll wlanhlp.dll wlanmsm.dll wlansec.dll wlansvc.dll wlanutil.dll Wldap32.dll wmiclnt.dll wpeutil ws2_32.dll wshhyperv.dll wsock32.dll wtsapi32.dll xcopy.exe xmllite.dll winload driver.stl winsxs" 1list.txt>2list.txt
findstr /v ".*_microsoft.windows.c..-controls.resources_.*_zh-cn .*_microsoft.windows.common-controls .*_microsoft.windows.gdiplus_.*_none Manifests.*_microsoft.windows.i..utomation.proxystub Manifests.*_microsoft.windows.isolationautomation Manifests.*_microsoft.windows.systemcompatible" winsxsList.TXT>>2list.txt
echo.
echo 正在增删削减winre.wim包里的文件制作pe过程中,请您稍微等待。。。
del excel.txt /f /q
for /f "delims=" %%i in (2list.txt) do (
        echo delete --force --recursive "%%i">>excel.txt
    )
%~dp0wimlib update BOOT.WIM<excel.txt>NUL
%~dp0wimlib update BOOT.WIM<add2wim\add2wim.txt>NUL
%~dp0wimlib optimize BOOT.WIM

set /a endS=%time:~6,2%
set /a endM=%time:~3,2%
echo %time%
set /a diffS_=%endS%-%startS%
set /a diffM_=%endM%-%startM%
echo cost:%diffM_% %diffS_%
echo.
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的网络骨头版pe成品!
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的网络骨头版pe成品!
echo 感谢您的等待,现在PE已经制作完成,BOOT.WIM就是你的网络骨头版pe成品!
echo.
PAUSE

点评

下面继续简化语句之后就一步生成excel.txt了,不知道两们老大有没测试过这种写法, 可惜虽然减少了临时文件的写入读取,但速度却更慢了,不得不吐槽for命令的低效。 不过我还是喜欢这种简洁的写法,改成这样自用了  详情 回复 发表于 2021-3-5 14:58
老大,看过你早前一个帖子,是从卷2导出列表并且对卷2进行wimlib update,卷1无论是一开始删除还是最后删除,都没有用到。 但看了葱哥的批处理,用boot.wim制作,流程是先从卷1导出列表,然后删除卷1,最后按列表  详情 回复 发表于 2021-3-5 14:56
@echo off&& cd /d %~dp0 if exist winre.wim ( echo 发现winre.wim!准备制作! set wimfile=winre.wim goto start ) else ( echo 没有发现winre.wim!尝试从boot.wim制作! goto checkwim pause ) :  详情 回复 发表于 2020-12-14 20:20
辛苦奶爸了  详情 回复 发表于 2020-12-14 19:09
回复

使用道具 举报

17#
发表于 2020-12-14 19:09:26 来自手机 | 只看该作者
sairen139 发表于 2020-12-14 14:58
这个是新版批处理的内容:

copy Winre.wim BOOT.WIM /y

辛苦奶爸了

点评

老大,看过你早前一个帖子,是从卷2导出列表并且对卷2进行wimlib update,卷1无论是一开始删除还是最后删除,都没有用到。 但看了葱哥的批处理,用boot.wim制作,流程是先从卷1导出列表,然后删除卷1,最后按列表  详情 回复 发表于 2021-3-5 14:53
回复

使用道具 举报

18#
 楼主| 发表于 2020-12-14 20:20:48 | 只看该作者
sairen139 发表于 2020-12-14 14:58
这个是新版批处理的内容:

copy Winre.wim BOOT.WIM /y

@echo off&& cd /d %~dp0
if exist winre.wim (
echo 发现winre.wim!准备制作!
set wimfile=winre.wim
goto start
) else (
echo 没有发现winre.wim!尝试从boot.wim制作!
goto checkwim
pause
)


:start
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
%~dp0bin\wimlib dir %wimfile% 1 | find ".">1List.TXT
%~dp0bin\wimlib dir %wimfile% 1 --path=windows\winsxs | find ".">winsxsList.TXT
findstr /vil "simsun.ttc SortDefault 3ware.inf acpi.inf acpidev.inf acpipagr.inf acpitime.inf adp80xx.inf amdgpio2.inf amdi2c.inf amdsata.inf amdsbs.inf arcsas.inf basicdisplay.inf basicrender.inf battery.inf buttonconverter.inf c_apo.inf c_avc.inf c_battery.inf c_biometric.inf c_cdrom.inf c_computeaccelerator.inf c_computer.inf c_diskdrive.inf c_display.inf c_extension.inf c_firmware.inf c_hdc.inf c_hidclass.inf c_image.inf c_keyboard.inf c_legacydriver.inf c_mcx.inf c_media.inf c_mediumchanger.inf c_memory.inf c_modem.inf c_monitor.inf c_mouse.inf c_mtd.inf c_multifunction.inf c_multiportserial.inf c_net.inf c_netdriver.inf c_netservice.inf c_nettrans.inf c_ports.inf c_processor.inf c_proximity.inf c_sbp2.inf c_scmdisk.inf c_scmvolume.inf c_scsiadapter.inf c_sdhost.inf c_smartcard.inf c_smartcardfilter.inf c_smartcardreader.inf c_smrdisk.inf c_smrvolume.inf c_sslaccel.inf c_swcomponent.inf c_swdevice.inf c_system.inf c_ucm.inf c_unknown.inf c_usb.inf c_usbdevice.inf c_usbfn.inf c_volsnap.inf c_volume.inf c_wceusbs.inf dc21x4vm.inf disk.inf dwup.inf e2xw10x64.inf ehstortcgdrv.inf errata.inf errdev.inf genericusbfn.inf hal.inf halextintclpiodma.inf halextpl080.inf hdaudbus.inf hdaudio.inf hdaudss.inf hidbatt.inf hiddigi.inf hidi2c.inf hidinterrupt.inf hidserv.inf hidspi_km.inf hidvhf.inf hpsamd.inf iagpio.inf iai2c.inf iaLPSS2i_GPIO2_BXT_P.inf iaLPSS2i_GPIO2_CNL.inf iaLPSS2i_GPIO2_GLK.inf iaLPSS2i_GPIO2_SKL.inf iaLPSS2i_I2C_BXT_P.inf iaLPSS2i_I2C_CNL.inf iaLPSS2i_I2C_GLK.inf iaLPSS2i_I2C_SKL.inf ialpssi_gpio.inf ialpssi_i2c.inf iastorav.inf iastorv.inf input.inf ipmidrv.inf ipoib6x.inf iscsi.inf ItSas35i.inf kdnic.inf keyboard.inf lltdio.inf lsi_sas.inf lsi_sas2i.inf lsi_sas3i.inf lsi_sss.inf machine.inf mausbhost.inf mchgr.inf megasas.inf megasas2i.inf megasas35i.inf megasr.inf mf.inf mlx4_bus.inf mshdc.inf msmouse.inf msports.inf mssmbios.inf mtconfig.inf mvumis.inf ndisimplatform.inf ndisimplatformmp.inf ndisuio.inf ndisvirtualbus.inf net1ix64.inf net1yx64.inf net40i68.inf net44amd.inf net7400-x64-n650.inf net7500-x64-n650f.inf net7800-x64-n650f.inf net9500-x64-n650f.inf netax88179_178a.inf netax88772.inf nete1e3e.inf nete1g3e.inf netefe3e.inf netg664.inf netimm.inf netip6.inf netjme.inf netk57a.inf netl160a.inf netl1e64.inf netl260a.inf netloop.inf netmscli.inf netmyk64.inf netnb.inf netnvma.inf netnwifi.inf netrasa.inf netrass.inf netrast.inf netrtl64.inf netserv.inf netsstpa.inf nett4x64.inf nettcpip.inf netvf63a.inf netvg63a.inf netxex64.inf netxix64.inf npsvctrig.inf nvdimm.inf nvraid.inf pci.inf percsas2i.inf percsas3i.inf pmem.inf puwk.inf qd3x64.inf ramdisk.inf rawsilo.inf rdshup.inf rspndr.inf rt640x64.inf rtux64w10.inf sbp2.inf sceregvl.inf scmbus.inf scmvolume.inf scsidev.inf sdbus.inf sdstor.inf secrecs.inf sisraid2.inf sisraid4.inf SmartSAMD.inf smrdisk.inf smrvolume.inf spaceport.inf stexstor.inf stornvme.inf storufs.inf swenum.inf uaspstor.inf uefi.inf ufxchipidea.inf ufxsynopsys.inf umbus.inf umpass.inf unknown.inf usb.inf usbhub3.inf usbnet.inf usbport.inf usbser.inf usbstor.inf usbxhci.inf vdrvroot.inf vhdmp.inf virtdisk.inf volmgr.inf volsnap.inf volume.inf vsmraid.inf vstxraid.inf wdmaudiocoresystem.inf wdmvsc.inf whyperkbd.inf wmiacpi.inf wnetvsc.inf wstorflt.inf wstorvsc.inf wvmbus.inf wvmbushid.inf wvmbusvideo.inf ykinx64.inf L2Schemas aero.msstyles regedit aclui.dll advapi32.dll aepic.dll apisetschema.dll asycfilt.dll atl.dll authz.dll basesrv.dll bcd.dll bcdboot.exe bcdedit.exe bcryptprimitives.dll BFE.DLL BOOTVID.DLL BrokerLib.dll cabinet.dll cdd.dll cfgmgr32.dll ci.dll clb.dll cmd.exe cmdext.dll combase.dll comdlg32.dll coml2.dll conhost.exe console.dll credui.dll cryptbase.dll cryptdll.dll cryptsp.dll bcrypt.dll crypt32.dll cryptsvc.dll msxml ncrypt.dll rasapi32.dll wldp.dll csrsrv.dll csrss.exe C_1252.NLS C_437.NLS C_936.NLS d2d1.dll d3d11.dll dab.dll dabapi.dll dbgcore.dll dbghelp.dll devobj.dll devrtl.dll dhcpcore.dll dhcpcore6.dll dhcpcsvc.dll dhcpcsvc6.dll diskpart.exe dllhost.exe dnsapi.dll dnsrslvr.dll dpapi.dll dpapisrv.dll drvinst.exe drvload.exe drvsetup.dll drvstore.dll dsparse.dll dsrole.dll dui70.dll duser.dll dwmapi.dll DWrite.dll dxgi.dll eappprxy.dll EventAggregation.dll feclient.dll find.exe findstr.exe FirewallAPI.dll fltLib.dll fmifs.dll fontdrvhost.exe format.com fsutil.exe fsutilext.dll fveapi.dll fwbase.dll fwpolicyiomgr.dll FWPUCLNT.DLL gdi32.dll gdi32full.dll gpapi.dll hal.dll hhsetup.dll iertutil.dll ifsutil.dll IKEEXT.DLL imagehlp.dll imageres.dll imapi2.dll imm32.dll ipconfig.exe IPHLPAPI.DLL joinutil.dll KBDUS.DLL kd.dll KerbClientShared.dll kerberos.dll kernel.appcore.dll kernel32.dll KernelBase.dll keyiso.dll ksuser.dll ktmw32.dll l2nacp.dll linkinfo.dll lmhsvc.dll locale.nls logoncli.dll lsasrv.dll lsass.exe lsm.dll l_intl.nls mfc42u.dll mpr.dll MPSSVC.dll msasn1.dll msctf.dll msftedit.dll msimg32.dll msports.dll msprivs.dll msv1_0.dll msvcp110_win.dll msvcp_win.dll msvcrt.dll mswsock.dll ncsi.dll net.exe net1.exe netapi32.dll netbios.dll netcfgx.dll netjoin.dll netlogon.dll netmsg.dll netprovfw.dll NetSetupApi.dll NetSetupEngine.dll NetSetupSvc.dll netshell.dll netutils.dll newdev.dll ninput.dll nlaapi.dll nlasvc.dll normaliz.dll notepad.exe nrpsrv.dll nsi.dll nsisvc.dll ntasn1.dll ntdll.dll ntdsapi.dll ntlanman.dll NtlmShared.dll ntmarta.dll ntoskrnl.exe ole32.dll oleacc.dll oleaccrc.dll oleaut32.dll oledlg.dll OneCoreCommonProxyStub.dll onex.dll osuninst.dll powrprof.dll profapi.dll propsys.dll psapi.dll PSHED.DLL rasadhlp.dll rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll rsaenh.dll rundll32.exe samcli.dll samsrv.dll schannel.dll schema.dat sechost.dll secur32.dll services.exe setupapi.dll SHCore.dll shell32.dll shlwapi.dll shutdownux.dll slc.dll SmiEngine.dll smss.exe spfileq.dll spinf.dll sppc.dll srvcli.dll srvsvc.dll sscore.dll sspicli.dll sspisrv.dll stdole2.tlb Storprop.dll svchost.exe sxs.dll sxssrv.dll sysclass.dll sysntfy.dll SystemEventsBrokerServer.dll takeown.exe taskmgr.exe TextShaping.dll ucrtbase.dll uexfat.dll ufat.dll ulib.dll umpdc.dll umpnpmgr.dll umpo.dll unattend.dll untfs.dll urlmon.dll user32.dll userenv.dll usp10.dll UXInit.dll uxtheme.dll vds.exe vdsbas.dll vdsdyn.dll vdsldr.exe vdsutil.dll vdsvd.dll vds_ps.dll version.dll virtdisk.dll webio.dll wevtapi.dll wevtsvc.dll wimgapi.dll wimserv.exe win32k.sys win32kbase.sys win32kfull.sys win32u.dll winbrand.dll Windows.FileExplorer.Common.dll windows.storage.dll CatRoot 2\drivers DriverStore WindowsCodecs.dll winhttp.dll wininet.dll wininit.exe wininitext.dll winlogon.exe winmm.dll winmmbase.dll winnlsres.dll winnsi.dll winpeshl winspool.drv winsrv.dll winsrvext.dll winsta.dll wintrust.dll WinTypes.dll wkscli.dll wkssvc.dll wlanapi.dll wlanhlp.dll wlanmsm.dll wlansec.dll wlansvc.dll wlanutil.dll Wldap32.dll wmiclnt.dll wpeutil ws2_32.dll wshhyperv.dll wsock32.dll wtsapi32.dll xcopy.exe xmllite.dll winload driver.stl winsxs" 1list.txt>2list.txt
findstr /v ".*_microsoft.windows.c..-controls.resources_.*_zh-cn .*_microsoft.windows.common-controls .*_microsoft.windows.gdiplus_.*_none Manifests.*_microsoft.windows.i..utomation.proxystub Manifests.*_microsoft.windows.isolationautomation Manifests.*_microsoft.windows.systemcompatible" winsxsList.TXT>>2list.txt

echo.
echo 正在增删削减%wimfile%包里的文件制作pe过程中,请您稍微等待。。。
if exist excel.txt del excel.txt /f /q
for /f "delims=" %%i in (2list.txt) do (
        echo delete --force --recursive "%%i">>excel.txt
    )
if "%wimfile%" == "boot.wim" (
echo 从boot.wim制作,准备删除卷1……
%~dp0bin\wimlib delete %wimfile% 1 --check"

) else (
echo 从Winre.wim制作中……
)
%~dp0bin\wimlib update %wimfile%<excel.txt>NUL
%~dp0bin\wimlib update %wimfile%<add2wim\add2wim.txt>NUL
%~dp0bin\wimlib optimize %wimfile%

set /a endS=%time:~6,2%
set /a endM=%time:~3,2%
echo %time%
set /a diffS_=%endS%-%startS%
set /a diffM_=%endM%-%startM%
echo cost:%diffM_% %diffS_%
echo.
del /q *.txt
set output=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%wimfile%.
ren %wimfile% %output%
echo 感谢您的等待,现在PE已经制作完成,%output%就是你的网络骨头版pe成品!

echo.
PAUSE

:checkwim
if exist %~dp0boot.wim echo 发现boot.wim,直接制作……&&set wimfile=boot.wim&&goto:start
for /f %%i in ('dir /b %~dp0*.iso') do set iso=%%i
if "%iso%"=="" exit
echo 没有发现boot.wim,正在尝试从iso中解压出boot.wim....
%~dp0bin\7z.exe e -o%~dp0 -aoa  %~dp0%iso% sources/boot.wim
set wimfile=boot.wim&&goto:start
瞎改了个,好像能通吃的

点评

оboot.wim  详情 回复 发表于 2020-12-14 20:42
回复

使用道具 举报

19#
发表于 2020-12-14 20:42:44 来自手机 | 只看该作者
  2020-12-14 20:20
@echo off&& cd /d %~dp0
if exist winre.wim (
echo winre.wim

оboot.wim

点评

零啊,对的,是写成%~dp0boot.wim 这个是MM头像的liuzhaoyzz(柳昭仪?)MM教我的。  详情 回复 发表于 2020-12-14 20:46
回复

使用道具 举报

20#
 楼主| 发表于 2020-12-14 20:46:38 | 只看该作者

零啊,对的,是写成%~dp0boot.wim
这个是MM头像的liuzhaoyzz(柳昭仪?)MM教我的。

点评

哦,逛论坛看到这里,忍俊不禁,我的论坛头像是从某个论坛里面提取的,是个卡通头像,不是个MM头像啊。  详情 回复 发表于 2021-1-18 14:04
用新批处理解压boot.wim出来后制作完能成功启动吗?  详情 回复 发表于 2020-12-14 20:51
刚才写的被吞了,我刚才发的是在陪床没法验证,不过感觉boot.wim的启动标志在你的新批处理里没有做相应处理。  详情 回复 发表于 2020-12-14 20:50
回复

使用道具 举报

21#
发表于 2020-12-14 20:50:04 | 只看该作者
江南一根葱 发表于 2020-12-14 20:46
零啊,对的,是写成%~dp0boot.wim
这个是MM头像的liuzhaoyzz(柳昭仪?)MM教我的。

刚才写的被吞了,我刚才发的是在陪床没法验证,不过感觉boot.wim的启动标志在你的新批处理里没有做相应处理。

点评

有处理,我试了直接从iso翔出来,可以启的 if "%wimfile%" == "boot.wim" ( echo 从boot.wim制作,准备删除卷1…… %~dp0bin\wimlib delete %wimfile% 1 --check" 读取卷1的文件列表,再删掉卷1 直接按你钦定的  详情 回复 发表于 2020-12-14 20:52
回复

使用道具 举报

22#
发表于 2020-12-14 20:51:19 | 只看该作者
江南一根葱 发表于 2020-12-14 20:46
零啊,对的,是写成%~dp0boot.wim
这个是MM头像的liuzhaoyzz(柳昭仪?)MM教我的。

用新批处理解压boot.wim出来后制作完能成功启动吗?
回复

使用道具 举报

23#
 楼主| 发表于 2020-12-14 20:52:32 | 只看该作者
sairen139 发表于 2020-12-14 20:50
刚才写的被吞了,我刚才发的是在陪床没法验证,不过感觉boot.wim的启动标志在你的新批处理里没有做相应处 ...

有处理,我试了直接从iso翔出来,可以启的
if "%wimfile%" == "boot.wim" (
echo 从boot.wim制作,准备删除卷1……
%~dp0bin\wimlib delete %wimfile% 1 --check"
读取卷1的文件列表,再删掉卷1
直接按你钦定的列表处理卷2

点评

好的,我刚才没看到这个地方,那就没问题了  详情 回复 发表于 2020-12-14 20:53
回复

使用道具 举报

24#
发表于 2020-12-14 20:53:54 | 只看该作者
江南一根葱 发表于 2020-12-14 20:52
有处理,我试了直接从iso翔出来,可以启的
if "%wimfile%" == "boot.wim" (
echo 从boot.wim制作,准备 ...

好的,我刚才没看到这个地方,那就没问题了

点评

折腾想屁吃,有没有win7和win8的列表  详情 回复 发表于 2020-12-14 20:56
回复

使用道具 举报

25#
 楼主| 发表于 2020-12-14 20:56:27 | 只看该作者
sairen139 发表于 2020-12-14 20:53
好的,我刚才没看到这个地方,那就没问题了

折腾想屁吃,有没有win7和win8的列表

点评

没有,老婆刚生了个儿子我最近没时间折腾  详情 回复 发表于 2020-12-14 20:57
回复

使用道具 举报

26#
发表于 2020-12-14 20:57:26 | 只看该作者
江南一根葱 发表于 2020-12-14 20:56
折腾想屁吃,有没有win7和win8的列表

没有,老婆刚生了个儿子我最近没时间折腾

点评

公喜公喜,学红毛再生个小萝莉就更好了  详情 回复 发表于 2020-12-14 20:59
回复

使用道具 举报

27#
 楼主| 发表于 2020-12-14 20:59:49 | 只看该作者
sairen139 发表于 2020-12-14 20:57
没有,老婆刚生了个儿子我最近没时间折腾

公喜公喜,学红毛再生个小萝莉就更好了

点评

哪里都能扯到我……我就一个娃  详情 回复 发表于 2020-12-15 09:57
回复

使用道具 举报

28#
发表于 2020-12-14 21:00:33 | 只看该作者
不过是win7和win8应该大体相同,只要稍稍改动一点点就行
回复

使用道具 举报

29#
发表于 2020-12-14 22:11:10 | 只看该作者
做个32位的。我很想用。好吗?
回复

使用道具 举报

30#
发表于 2020-12-15 08:41:15 | 只看该作者
好用,不错,有一个小错误


点评

那是因为单数小时,比如08点,0会被用空格代替,造成文件名有空格报错。 加上引号就好:"%output%" 又或者在ren前加一行,把空格替换为0 :set output=%output: =0%  详情 回复 发表于 2021-3-7 22:13
我这正常的,可能不支持系统分区下折腾,好像是有这个特性  详情 回复 发表于 2020-12-17 13:01
回复

使用道具 举报

31#
发表于 2020-12-15 09:57:16 来自手机 | 只看该作者
江南一根葱 发表于 2020-12-14 20:59
公喜公喜,学红毛再生个小萝莉就更好了

哪里都能扯到我……我就一个娃

点评

外面传言你家有小萝莉,不拉出来直播直播 再传言,全国各地还有。。  详情 回复 发表于 2020-12-15 10:41
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-24 08:00

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表