无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 19767|回复: 120

[分享] 五秒制作完成网络骨头版pe:一键批处理增删削减winre.WIM包仅需5秒制作网络版WIN10pe

    [复制链接]
发表于 2020-11-26 16:51:53 | 显示全部楼层 |阅读模式
本帖最后由 sairen139 于 2021-12-7 15:02 编辑

五秒制作完成网络骨头版pe:一键批处理增删削减winre.WIM包5秒快速制作网络版WIN10pe
几天前我发表了一篇名为《150m的网络版pe管中窥豹2:一个较为精简的纯X64位网络版win10pe的目录架构和文件清单》的pe制作帖子,随后两天时间里想到手动制作pe毕竟比较麻烦就设想了一个批处理自动制作的方案并成功实现了半自动的四步骤法,经过实践终于把前天我发布的四步骤教程里的三个批处理集合成一个批处理一条龙全自动制作pe了,只要把winre.wim放入文件夹里运行一下bat批处理就能自动制作完成150mb的网络骨头版pe,批处理内容如下所示(参考了本论坛bfgxp大能改进的批处理语句)
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

4EDCE213-DAB0-411C-8006-FE7694A77963.jpeg
383E3218-D3A4-4D02-9AC9-B1238D489CA7.jpeg
DD561592-86AD-48E8-8C45-F7EA451E525F.jpeg
AB130271-AEF6-4FD5-A0DC-7DD867F3195D.jpeg

!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.zip.002.ZIP

1.98 MB, 下载次数: 724, 下载积分: 无忧币 -2

去掉最后的后缀.ZIP后解压使用

!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.zip.001.ZIP

2 MB, 下载次数: 646, 下载积分: 无忧币 -2

去掉最后的后缀.ZIP后解压使用

!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.bat.TXT

8.11 KB, 下载次数: 295, 下载积分: 无忧币 -2

!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.bat

add2wim.txt

6.15 KB, 下载次数: 278, 下载积分: 无忧币 -2

!增删削减WinRE.wim一键生成19041.1网络pe添加iSCSI和RustDesk远程控制.7z

3.98 MB, 下载次数: 48, 下载积分: 无忧币 -2

!增删削减WinRE.wim一键生成19041.1网络pe添加iSCSI和RustDesk远程控制

评分

参与人数 13无忧币 +61 收起 理由
xxkknn + 5 感谢楼主
ghm1254 + 1 神马都是浮云
wuxin9712 + 5
tools241 + 5 很给力!
zhh_xq + 5 很给力!
whyme22 + 5
某些人 + 5 赞一个!
ferdfg + 5 赞一个!
泮安宁 + 5 很给力!
新空气 + 5 很给力!
yigeren + 5 很给力!
liangyi + 5 厉害,佩服楼主折腾技术的精神
fulibo + 5 很给力!

查看全部评分

 楼主| 发表于 2020-11-26 16:52:09 | 显示全部楼层
本帖最后由 sairen139 于 2020-11-28 22:52 编辑

两张截图一张是winxshell默认的黑色主题,一张是改动winxshell.jcfg配置文件里的主题为light白色主题。白色主题那个系统把wifi连接界面也改成light白色主题了!本文批处理可以拆分成两个,前面部分是制作删减wimre.wim里的路径列表文件清单excel.txt,至于下面的最后部分是实际上增删削减wimre.wim里的文件内容的可以拆出来作为第二个批处理这样再次制作只要5秒就能完成pe的制作:
%~dp0wimlib update winre.WIM<excel.txt  >nul
%~dp0wimlib update winre.WIM<add2wim\add2wim.txt  >nul
%~dp0wimlib optimize WinRE.WIM
PAUSE

83F0AA53-9E4D-4A92-900F-4F07C1AD8DF3.jpeg

!!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.zip.002.ZIP

2 MB, 下载次数: 155, 下载积分: 无忧币 -2

更骨头的140mb黑色主题pe

!!一键批处理增删削减winre的WIM包30秒制作完成WIN10pe网络骨头版.zip.001.ZIP

2 MB, 下载次数: 159, 下载积分: 无忧币 -2

更骨头的140mb黑色主题pe

点评

如果你觉得有些没删掉或者没加上可以直接命令行精细调整: %~dp0wimlib update winre.WIM --command="delete --force --recursive setup.exe" %~dp0wimlib update winre.WIM --command="delete --force --recursiv  详情 回复 发表于 2020-11-27 09:11
回复

使用道具 举报

 楼主| 发表于 2020-11-26 16:52:27 | 显示全部楼层
本帖最后由 sairen139 于 2020-11-26 18:52 编辑

pe的桌面壁纸wallpaper.jpg可自行替换

点评

五秒制作完成网络骨头版pe(二):一键批处理增删削减winre.WIM包同时修改注册表的方法 坛友@江南一根葱说他有一种多播网克一次性批量给大量电脑安装系统的方法,但是要求进pe桌面之前就把防火墙改为手动,这样才  详情 回复 发表于 2021-3-16 19:02
回复

使用道具 举报

 楼主| 发表于 2020-11-26 16:52:39 | 显示全部楼层
本帖最后由 sairen139 于 2020-11-26 17:20 编辑

特别感谢本论坛slore大神开发了小巧的shell壳工具让pe制作加上桌面变得无比简单,也感谢cchessbd给我的这个一键批处理改进上的启发
回复

使用道具 举报

发表于 2020-11-26 16:58:19 | 显示全部楼层
沙发,抢了头座
回复

使用道具 举报

发表于 2020-11-26 20:50:20 | 显示全部楼层
越来越简单了,为人民服务
回复

使用道具 举报

发表于 2020-11-26 21:09:35 | 显示全部楼层
不懂为什么下来很多次都是这样。还有一个老帖也是第一个出错
微信图片_20201126210558.png 微信图片_20201126210549.png 微信图片_20201126210846.png

点评

请把最后的大写.ZIP去掉后用7ZIP等解压缩软件打开  详情 回复 发表于 2020-11-26 22:17
回复

使用道具 举报

发表于 2020-11-26 21:26:52 | 显示全部楼层
去掉后缀.ZIP试试,我这没问题。
回复

使用道具 举报

发表于 2020-11-26 21:30:36 | 显示全部楼层
非常感谢楼主的分享
回复

使用道具 举报

发表于 2020-11-26 21:45:10 | 显示全部楼层
谁最牛?楼主牛!
回复

使用道具 举报

 楼主| 发表于 2020-11-26 22:17:14 | 显示全部楼层
qq27722 发表于 2020-11-26 21:09
不懂为什么下来很多次都是这样。还有一个老帖也是第一个出错

请把最后的大写.ZIP去掉后用7ZIP等解压缩软件打开

点评

谢谢。可以了。谢谢分享  详情 回复 发表于 2020-11-27 17:11
回复

使用道具 举报

发表于 2020-11-26 23:40:19 | 显示全部楼层
用楼主的方法制作一次成功,WIM体积160M,感谢楼主分享的简单折腾方法!成品比较简单就不上传了,后续需要继续折腾完善一下。
微信图片_20201126233054.jpg
回复

使用道具 举报

发表于 2020-11-27 08:24:06 | 显示全部楼层
谢谢分享,学习了
回复

使用道具 举报

 楼主| 发表于 2020-11-27 09:11:29 | 显示全部楼层
sairen139 发表于 2020-11-26 16:52
两张截图一张是winxshell默认的黑色主题,一张是改动winxshell.jcfg配置文件里的主题为light白色主题。白色 ...

如果你觉得有些没删掉或者没加上可以直接命令行精细调整:
%~dp0wimlib update winre.WIM --command="delete --force --recursive setup.exe"
%~dp0wimlib update winre.WIM --command="delete --force --recursive \Windows\BOOT"
回复

使用道具 举报

 楼主| 发表于 2020-11-27 12:31:24 | 显示全部楼层
本帖最后由 sairen139 于 2020-11-28 23:11 编辑

%~dp0\wimlib dir winre.wim>1List.txt
type 1List.txt | find ".">2List.TXT
@echo off
findstr /v "simsun.ttc SortDefault F.3ware.inf F.acpi.inf F.acpidev.inf F.acpipagr.inf F.acpitime.inf F.adp80xx.inf F.amdgpio2.inf F.amdi2c.inf F.amdsata.inf F.amdsbs.inf F.arcsas.inf F.basicdisplay.inf F.basicrender.inf F.battery.inf F.buttonconverter.inf F.c_apo.inf F.c_avc.inf F.c_battery.inf F.c_biometric.inf F.c_cdrom.inf F.c_computeaccelerator.inf F.c_computer.inf F.c_diskdrive.inf F.c_display.inf F.c_extension.inf F.c_firmware.inf F.c_hdc.inf F.c_hidclass.inf F.c_image.inf F.c_keyboard.inf F.c_legacydriver.inf F.c_mcx.inf F.c_media.inf F.c_mediumchanger.inf F.c_memory.inf F.c_modem.inf F.c_monitor.inf F.c_mouse.inf F.c_mtd.inf F.c_multifunction.inf F.c_multiportserial.inf F.c_net.inf F.c_netdriver.inf F.c_netservice.inf F.c_nettrans.inf F.c_ports.inf F.c_processor.inf F.c_proximity.inf F.c_sbp2.inf F.c_scmdisk.inf F.c_scmvolume.inf F.c_scsiadapter.inf F.c_sdhost.inf F.c_smartcard.inf F.c_smartcardfilter.inf F.c_smartcardreader.inf F.c_smrdisk.inf F.c_smrvolume.inf F.c_sslaccel.inf F.c_swcomponent.inf F.c_swdevice.inf F.c_system.inf F.c_ucm.inf F.c_unknown.inf F.c_usb.inf F.c_usbdevice.inf F.c_usbfn.inf F.c_volsnap.inf F.c_volume.inf F.c_wceusbs.inf F.dc21x4vm.inf F.disk.inf F.dwup.inf F.e2xw10x64.inf F.ehstortcgdrv.inf F.errata.inf F.errdev.inf F.genericusbfn.inf F.hal.inf F.halextintclpiodma.inf F.halextpl080.inf F.hdaudbus.inf F.hdaudio.inf F.hdaudss.inf F.hidbatt.inf F.hiddigi.inf F.hidi2c.inf F.hidinterrupt.inf F.hidserv.inf F.hidspi_km.inf F.hidvhf.inf F.hpsamd.inf F.iagpio.inf F.iai2c.inf F.iaLPSS2i_GPIO2_BXT_P.inf F.iaLPSS2i_GPIO2_CNL.inf F.iaLPSS2i_GPIO2_GLK.inf F.iaLPSS2i_GPIO2_SKL.inf F.iaLPSS2i_I2C_BXT_P.inf F.iaLPSS2i_I2C_CNL.inf F.iaLPSS2i_I2C_GLK.inf F.iaLPSS2i_I2C_SKL.inf F.ialpssi_gpio.inf F.ialpssi_i2c.inf F.iastorav.inf F.iastorv.inf F.input.inf F.ipmidrv.inf F.ipoib6x.inf F.iscsi.inf F.ItSas35i.inf F.kdnic.inf F.keyboard.inf F.lltdio.inf F.lsi_sas.inf F.lsi_sas2i.inf F.lsi_sas3i.inf F.lsi_sss.inf F.machine.inf F.mausbhost.inf F.mchgr.inf F.megasas.inf F.megasas2i.inf F.megasas35i.inf F.megasr.inf F.mf.inf F.mlx4_bus.inf F.mshdc.inf F.msmouse.inf F.msports.inf F.mssmbios.inf F.mtconfig.inf F.mvumis.inf F.ndisimplatform.inf F.ndisimplatformmp.inf F.ndisuio.inf F.ndisvirtualbus.inf F.net1ix64.inf F.net1yx64.inf F.net40i68.inf F.net44amd.inf F.net7400-x64-n650.inf F.net7500-x64-n650f.inf F.net7800-x64-n650f.inf F.net9500-x64-n650f.inf F.netax88179_178a.inf F.netax88772.inf F.nete1e3e.inf F.nete1g3e.inf F.netefe3e.inf F.netg664.inf F.netimm.inf F.netip6.inf F.netjme.inf F.netk57a.inf F.netl160a.inf F.netl1e64.inf F.netl260a.inf F.netloop.inf F.netmscli.inf F.netmyk64.inf F.netnb.inf F.netnvma.inf F.netnwifi.inf F.netrasa.inf F.netrass.inf F.netrast.inf F.netrtl64.inf F.netserv.inf F.netsstpa.inf F.nett4x64.inf F.nettcpip.inf F.netvf63a.inf F.netvg63a.inf F.netxex64.inf F.netxix64.inf F.npsvctrig.inf F.nvdimm.inf F.nvraid.inf F.pci.inf F.percsas2i.inf F.percsas3i.inf F.pmem.inf F.puwk.inf F.qd3x64.inf F.ramdisk.inf F.rawsilo.inf F.rdshup.inf F.rspndr.inf F.rt640x64.inf F.rtux64w10.inf F.sbp2.inf F.sceregvl.inf F.scmbus.inf F.scmvolume.inf F.scsidev.inf F.sdbus.inf F.sdstor.inf F.secrecs.inf F.sisraid2.inf F.sisraid4.inf F.SmartSAMD.inf F.smrdisk.inf F.smrvolume.inf F.spaceport.inf F.stexstor.inf F.stornvme.inf F.storufs.inf F.swenum.inf F.uaspstor.inf F.uefi.inf F.ufxchipidea.inf F.ufxsynopsys.inf F.umbus.inf F.umpass.inf F.unknown.inf F.usb.inf F.usbhub3.inf F.usbnet.inf F.usbport.inf F.usbser.inf F.usbstor.inf F.usbxhci.inf F.vdrvroot.inf F.vhdmp.inf F.virtdisk.inf F.volmgr.inf F.volsnap.inf F.volume.inf F.vsmraid.inf F.vstxraid.inf F.wdmaudiocoresystem.inf F.wdmvsc.inf F.whyperkbd.inf F.wmiacpi.inf F.wnetvsc.inf F.wstorflt.inf F.wstorvsc.inf F.wvmbus.inf F.wvmbushid.inf F.wvmbusvideo.inf F.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 2.*bcrypt.dll 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 2.*crypt32.dll cryptbase.dll 2.cryptdll.dll 2.cryptsp.dll 2.*cryptsvc.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 2.dpapi.dll 2.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 2.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 2.*msxml 2.*ncrypt.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 2.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 2.*rasapi32.dll 2.rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll 2.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 2.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 2.wintrust.dll WinTypes.dll wkscli.dll wkssvc.dll wlanapi.dll wlanhlp.dll wlanmsm.dll wlansec.dll wlansvc.dll wlanutil.dll Wldap32.dll 2.*wldp.dll wmiclnt.dll wpeutil ws2_32.dll wshhyperv.dll wsock32.dll wtsapi32.dll xcopy.exe xmllite.dll winload driver.stl .*_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" 2List.TXT>%date:~0,4%%date:~5,2%%date:~8,2%.txt
echo.
echo 正在增删削减winre.wim文件制作pe的过程中,请稍等。。。
for /f "delims=" %%i in (%date:~0,4%%date:~5,2%%date:~8,2%.txt) do ( echo delete --force --recursive "%%i">>excel.txt )
%~dp0wimlib update winre.WIM<excel.txt
%~dp0wimlib update winre.WIM<add2wim\add2wim.txt
%~dp0wimlib optimize WinRE.WIM
echo.
echo 感谢您的等待,现在pe已经制作完成请您把WinRE.WIM改名成BOOT.WIM来使用
echo 感谢您的等待,现在pe已经制作完成请您把WinRE.WIM改名成BOOT.WIM来使用
echo 感谢您的等待,现在pe已经制作完成请您把WinRE.WIM改名成BOOT.WIM来使用
echo.
PAUSE

回复

使用道具 举报

发表于 2020-11-27 17:11:54 | 显示全部楼层
sairen139 发表于 2020-11-26 22:17
请把最后的大写.ZIP去掉后用7ZIP等解压缩软件打开

谢谢。可以了。谢谢分享
回复

使用道具 举报

发表于 2020-11-27 19:06:51 | 显示全部楼层

感谢分享!
回复

使用道具 举报

发表于 2020-11-27 19:38:49 | 显示全部楼层
本PE由于不兼容32位,无法用CGI或WimTool安装系统,它们都是64/32位自动的,网上我没找到64位的。能兼容就好了

点评

安装系统为什么不用winNTsetup或者dism++或者wimlib这类的都可以  详情 回复 发表于 2020-11-27 21:13
回复

使用道具 举报

 楼主| 发表于 2020-11-27 21:13:50 | 显示全部楼层
gbzx 发表于 2020-11-27 19:38
本PE由于不兼容32位,无法用CGI或WimTool安装系统,它们都是64/32位自动的,网上我没找到64位的。能兼容就 ...

安装系统为什么不用winNTsetup或者dism++或者wimlib这类的都可以
回复

使用道具 举报

发表于 2020-11-27 21:30:07 | 显示全部楼层
对啊,一直都觉得winNTsetup更好
回复

使用道具 举报

发表于 2020-11-28 05:25:12 | 显示全部楼层
很厉害也很精简,这体积确实是小。
回复

使用道具 举报

发表于 2020-11-28 19:19:25 | 显示全部楼层
来个7秒的,主要在两方面节省时间,一是使用 findstr /vil 参数来比对无须通配的大部分文件,二是在wimlib处理wim的末尾加上 >nul禁止输出滚动信息
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
@echo off
set TheStart=delete --force --recursive "
set TheEnd="^
findstr /vil "simsun.ttc SortDefault F\3ware.inf F\acpi.inf F\acpidev.inf F\acpipagr.inf F\acpitime.inf F\adp80xx.inf F\amdgpio2.inf F\amdi2c.inf F\amdsata.inf F\amdsbs.inf F\arcsas.inf F\basicdisplay.inf F\basicrender.inf F\battery.inf F\buttonconverter.inf F\c_apo.inf F\c_avc.inf F\c_battery.inf F\c_biometric.inf F\c_cdrom.inf F\c_computeaccelerator.inf F\c_computer.inf F\c_diskdrive.inf F\c_display.inf F\c_extension.inf F\c_firmware.inf F\c_hdc.inf F\c_hidclass.inf F\c_image.inf F\c_keyboard.inf F\c_legacydriver.inf F\c_mcx.inf F\c_media.inf F\c_mediumchanger.inf F\c_memory.inf F\c_modem.inf F\c_monitor.inf F\c_mouse.inf F\c_mtd.inf F\c_multifunction.inf F\c_multiportserial.inf F\c_net.inf F\c_netdriver.inf F\c_netservice.inf F\c_nettrans.inf F\c_ports.inf F\c_processor.inf F\c_proximity.inf F\c_sbp2.inf F\c_scmdisk.inf F\c_scmvolume.inf F\c_scsiadapter.inf F\c_sdhost.inf F\c_smartcard.inf F\c_smartcardfilter.inf F\c_smartcardreader.inf F\c_smrdisk.inf F\c_smrvolume.inf F\c_sslaccel.inf F\c_swcomponent.inf F\c_swdevice.inf F\c_system.inf F\c_ucm.inf F\c_unknown.inf F\c_usb.inf F\c_usbdevice.inf F\c_usbfn.inf F\c_volsnap.inf F\c_volume.inf F\c_wceusbs.inf F\dc21x4vm.inf F\disk.inf F\dwup.inf F\e2xw10x64.inf F\ehstortcgdrv.inf F\errata.inf F\errdev.inf F\genericusbfn.inf F\hal.inf F\halextintclpiodma.inf F\halextpl080.inf F\hdaudbus.inf F\hdaudio.inf F\hdaudss.inf F\hidbatt.inf F\hiddigi.inf F\hidi2c.inf F\hidinterrupt.inf F\hidserv.inf F\hidspi_km.inf F\hidvhf.inf F\hpsamd.inf F\iagpio.inf F\iai2c.inf F\iaLPSS2i_GPIO2_BXT_P.inf F\iaLPSS2i_GPIO2_CNL.inf F\iaLPSS2i_GPIO2_GLK.inf F\iaLPSS2i_GPIO2_SKL.inf F\iaLPSS2i_I2C_BXT_P.inf F\iaLPSS2i_I2C_CNL.inf F\iaLPSS2i_I2C_GLK.inf F\iaLPSS2i_I2C_SKL.inf F\ialpssi_gpio.inf F\ialpssi_i2c.inf F\iastorav.inf F\iastorv.inf F\input.inf F\ipmidrv.inf F\ipoib6x.inf F\iscsi.inf F\ItSas35i.inf F\kdnic.inf F\keyboard.inf F\lltdio.inf F\lsi_sas.inf F\lsi_sas2i.inf F\lsi_sas3i.inf F\lsi_sss.inf F\machine.inf F\mausbhost.inf F\mchgr.inf F\megasas.inf F\megasas2i.inf F\megasas35i.inf F\megasr.inf F\mf.inf F\mlx4_bus.inf F\mshdc.inf F\msmouse.inf F\msports.inf F\mssmbios.inf F\mtconfig.inf F\mvumis.inf F\ndisimplatform.inf F\ndisimplatformmp.inf F\ndisuio.inf F\ndisvirtualbus.inf F\net1ix64.inf F\net1yx64.inf F\net40i68.inf F\net44amd.inf F\net7400-x64-n650.inf F\net7500-x64-n650f.inf F\net7800-x64-n650f.inf F\net9500-x64-n650f.inf F\netax88179_178a.inf F\netax88772.inf F\nete1e3e.inf F\nete1g3e.inf F\netefe3e.inf F\netg664.inf F\netimm.inf F\netip6.inf F\netjme.inf F\netk57a.inf F\netl160a.inf F\netl1e64.inf F\netl260a.inf F\netloop.inf F\netmscli.inf F\netmyk64.inf F\netnb.inf F\netnvma.inf F\netnwifi.inf F\netrasa.inf F\netrass.inf F\netrast.inf F\netrtl64.inf F\netserv.inf F\netsstpa.inf F\nett4x64.inf F\nettcpip.inf F\netvf63a.inf F\netvg63a.inf F\netxex64.inf F\netxix64.inf F\npsvctrig.inf F\nvdimm.inf F\nvraid.inf F\pci.inf F\percsas2i.inf F\percsas3i.inf F\pmem.inf F\puwk.inf F\qd3x64.inf F\ramdisk.inf F\rawsilo.inf F\rdshup.inf F\rspndr.inf F\rt640x64.inf F\rtux64w10.inf F\sbp2.inf F\sceregvl.inf F\scmbus.inf F\scmvolume.inf F\scsidev.inf F\sdbus.inf F\sdstor.inf F\secrecs.inf F\sisraid2.inf F\sisraid4.inf F\SmartSAMD.inf F\smrdisk.inf F\smrvolume.inf F\spaceport.inf F\stexstor.inf F\stornvme.inf F\storufs.inf F\swenum.inf F\uaspstor.inf F\uefi.inf F\ufxchipidea.inf F\ufxsynopsys.inf F\umbus.inf F\umpass.inf F\unknown.inf F\usb.inf F\usbhub3.inf F\usbnet.inf F\usbport.inf F\usbser.inf F\usbstor.inf F\usbxhci.inf F\vdrvroot.inf F\vhdmp.inf F\virtdisk.inf F\volmgr.inf F\volsnap.inf F\volume.inf F\vsmraid.inf F\vstxraid.inf F\wdmaudiocoresystem.inf F\wdmvsc.inf F\whyperkbd.inf F\wmiacpi.inf F\wnetvsc.inf F\wstorflt.inf F\wstorvsc.inf F\wvmbus.inf F\wvmbushid.inf F\wvmbusvideo.inf F\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 2\cryptdll.dll 2\cryptsp.dll 2\bcrypt.dll 2\crypt32.dll 2\cryptsvc.dll 2\msxml 2\ncrypt.dll 2\rasapi32.dll 2\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 2\dpapi.dll 2\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 2\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 2\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 2\rasman.dll reg.exe regsvr32.exe RpcEpMap.dll rpcrt4.dll RpcRtRemote.dll rpcss.dll 2\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 2\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 2\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 /i "winsxs" 1list.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" >>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 winre.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_%

PAUSE

点评

都是高手!  发表于 2022-5-10 18:28
还有这句for /f应该是批处理里最花费时间的,可以用第三方工具sed.exe的一句命令完成同样每行首位加字符的效果,这样一来就可以删掉for /f语句直接在文本前后加上字符串,制作pe应该能从7秒再继续缩短一些时间。 fo  详情 回复 发表于 2020-11-28 21:04
非常棒的批处理,感谢感谢!bfgxp兄可以试试把 %~dp0\wimlib dir winre.wim | find ".">1List.TXT这后面加一条 %~dp0\wimlib dir winre.wim —path=Windows\WinSxS | find ".">WinSxSList.TXT 这样的路径只导出wi  详情 回复 发表于 2020-11-28 19:53
回复

使用道具 举报

 楼主| 发表于 2020-11-28 19:53:39 | 显示全部楼层
bfgxp 发表于 2020-11-28 19:19
来个7秒的,主要在两方面节省时间,一是使用 findstr /vil 参数来比对无须通配的大部分文件,二是在wimlib ...

非常棒的批处理,感谢感谢!bfgxp兄可以试试把
%~dp0\wimlib dir winre.wim | find ".">1List.TXT这后面加一条
%~dp0\wimlib dir winre.wim —path=Windows\WinSxS | find ".">WinSxSList.TXT
这样的路径只导出winsxs里的文件列表范围小
后面的findstr /i .....1List.txt | findstr /v 这行也做相应更改只对准winsxslist.txt进行处理,速度上应该还能从现在的7秒再缩短一些,我在医院陪产没法实验,请bfgxp兄有空验证一下我的这个利用wimlib的- -path=路径来缩小文本匹配范围的方法是否能奏效来缩短批处理的查找时间?

点评

提前恭喜恭喜!!! 我是先过滤来的。不过还是可以试试看。  详情 回复 发表于 2020-11-28 20:22
回复

使用道具 举报

发表于 2020-11-28 20:22:11 | 显示全部楼层
sairen139 发表于 2020-11-28 19:53
非常棒的批处理,感谢感谢!bfgxp兄可以试试把
%~dp0\wimlib dir winre.wim | find ".">1List.TXT这后面 ...

提前恭喜恭喜!!!
我是先过滤来的。不过还是可以试试看。

点评

同喜同喜! 7秒制作一个pe网络版bfgxp兄的这个批处理改进的实在太好了!!!  详情 回复 发表于 2020-11-28 20:52
回复

使用道具 举报

 楼主| 发表于 2020-11-28 20:52:36 | 显示全部楼层
bfgxp 发表于 2020-11-28 20:22
提前恭喜恭喜!!!
我是先过滤来的。不过还是可以试试看。

同喜同喜!
7秒制作一个pe网络版bfgxp兄的这个批处理改进的实在太好了!!!
回复

使用道具 举报

 楼主| 发表于 2020-11-28 21:04:23 | 显示全部楼层
本帖最后由 sairen139 于 2020-11-28 21:06 编辑
bfgxp 发表于 2020-11-28 19:19
来个7秒的,主要在两方面节省时间,一是使用 findstr /vil 参数来比对无须通配的大部分文件,二是在wimlib ...

还有这句for /f应该是批处理里最花费时间的,可以用第三方工具sed.exe的一句命令完成同样每行首尾加字符的效果,这样一来就可以删掉for /f语句直接在文本前后加上字符串,制作pe应该能从7秒再继续缩短一些时间。bfgxp兄以后有空的话可以试试看看效果如何。
for /f "delims=" %%i in (2list.txt) do (
        echo delete --force --recursive "%%i">>excel.txt
    )

点评

恭喜大佬  详情 回复 发表于 2020-12-13 11:02
你说得对现在就是for那里要2.5秒,然后就是优化wim要5秒 21:07:01.42 导出列表 21:07:01.69 过滤非通配文件 21:07:02.00 过滤winsxs通配方式 21:07:02.44 for添加处理delete --force --recursive 21:07:0  详情 回复 发表于 2020-11-28 21:19
回复

使用道具 举报

发表于 2020-11-28 21:19:50 | 显示全部楼层
sairen139 发表于 2020-11-28 21:04
还有这句for /f应该是批处理里最花费时间的,可以用第三方工具sed.exe的一句命令完成同样每行首尾加字符 ...

你说得对现在就是for那里要2.5秒,然后就是优化wim要5秒

21:07:01.42
导出列表
21:07:01.69
过滤非通配文件
21:07:02.00
过滤winsxs通配方式
21:07:02.44
for添加处理delete --force --recursive
21:07:04.91
更新boot.wim
21:07:05.30
优化boot.wim
21:07:10.94
请按任意键继续. . .


点评

wimlib有个-soft的删除命令语句,也许可以直接去掉最后一步的优化optimze语句,我以前看到说这个soft参数删除速度更快。但是我没有用这个soft语句试验过  详情 回复 发表于 2020-11-28 21:29
回复

使用道具 举报

 楼主| 发表于 2020-11-28 21:29:34 | 显示全部楼层
bfgxp 发表于 2020-11-28 21:19
你说得对现在就是for那里要2.5秒,然后就是优化wim要5秒

21:07:01.42

wimlib有个-soft的删除命令语句,也许可以直接去掉最后一步的优化optimze语句,我以前看到说这个soft参数删除速度更快。但是我没有用这个soft语句试验过

点评

原来S大说月底退出,原来是要当爹没空了,祝贺了。  详情 回复 发表于 2020-11-29 12:01
回复

使用道具 举报

发表于 2020-11-28 21:29:37 | 显示全部楼层
厉害,感谢各位大师。
回复

使用道具 举报

发表于 2020-11-29 12:01:09 | 显示全部楼层
sairen139 发表于 2020-11-28 21:29
wimlib有个-soft的删除命令语句,也许可以直接去掉最后一步的优化optimze语句,我以前看到说这个soft参数 ...

原来S大说月底退出,原来是要当爹没空了,祝贺了。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-3-29 03:45

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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