无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
12
返回列表 发新帖
楼主: sairen139
打印 上一主题 下一主题

[教程] 一分钟内手工制作一个一百多mb的纯64位网络骨头版WIN10pe的最快捷方便的通用教程

    [复制链接]
31#
发表于 2020-11-26 10:15:55 | 只看该作者
怎么加上32位程序的支持?最好是加入pecmd,不然快捷方式都不好创建。

点评

32位支持需要system32文件夹里补充wow开头的三个dll文件,然后到install.wim里复制一些syswow64的32位程序支持文件等进wimre.wim  详情 回复 发表于 2020-11-26 10:33
回复

使用道具 举报

32#
 楼主| 发表于 2020-11-26 10:33:53 | 只看该作者
cchessbd 发表于 2020-11-26 10:15
怎么加上32位程序的支持?最好是加入pecmd,不然快捷方式都不好创建。

32位支持需要system32文件夹里补充wow开头的三个dll文件,然后到install.wim里复制一些syswow64的32位程序支持文件等进wimre.wim
回复

使用道具 举报

33#
 楼主| 发表于 2020-11-26 12:49:44 | 只看该作者
本帖最后由 sairen139 于 2020-11-26 13:11 编辑

前三步骤合一的批处理语句如下:
%~dp0\wimlib dir winre.wim>1List.txt
type 1List.TXT | find ".">2List.TXT
@echo off
set TheStart=delete --force --recursive "
set TheEnd="^
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 g.DEFAULT g.DRIVERS g.SAM g.SECURITY g.SOFTWARE g.SYSTEM NetworkList .*_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 正在处理需要删除的路径列表文本文件,请您稍微等待几秒钟。。。(下一行出现请按任意键继续...就表示已经处理完成了!)
(for /f "delims=" %%i in ('type "%date:~0,4%%date:~5,2%%date:~8,2%".txt') do ( echo %TheStart%%%i%TheEnd% ))>excel.txt
PAUSE
回复

使用道具 举报

34#
发表于 2020-11-26 13:00:57 | 只看该作者
syswow64的32位程序支持文件有几个?WinSxS文件夹要增加文件吗?

点评

可以试试增加下面这些文件看能不能成功:32位程序的支持[/backcolor]: 从D:\1909\INSTALL复制以下必要文件到D:\1909\WINPE文件夹: 32位程序支持文件 \Windows\System32\wow64.dll \Windows\System32\wow64cpu  详情 回复 发表于 2020-11-26 13:23
回复

使用道具 举报

35#
 楼主| 发表于 2020-11-26 13:23:35 | 只看该作者
gbzx 发表于 2020-11-26 13:00
syswow64的32位程序支持文件有几个?WinSxS文件夹要增加文件吗?

可以试试增加下面这些文件看能不能成功:
32位程序的支持:

从D:\1909\INSTALL复制以下必要文件到D:\1909\WINPE文件夹:


32位程序支持文件
\Windows\System32\wow64.dll
\Windows\System32\wow64cpu.dll
\Windows\System32\wow64win.dll

简易的32位程序支持列表

\Windows\SysWOW64\actxprxy.dll
\Windows\SysWOW64\advapi32.dll
\Windows\SysWOW64\bcrypt.dll
\Windows\SysWOW64\bcryptprimitives.dll
\Windows\SysWOW64\cabinet.dll
\Windows\SysWOW64\cfgmgr32.dll
\Windows\SysWOW64\cmd.exe
\Windows\SysWOW64\cmdext.dll
\Windows\SysWOW64\combase.dll
\Windows\SysWOW64\comdlg32.dll
\Windows\SysWOW64\coml2.dll
\Windows\SysWOW64\credui.dll
\Windows\SysWOW64\crypt32.dll
\Windows\SysWOW64\cryptbase.dll
\Windows\SysWOW64\cryptdll.dll
\Windows\SysWOW64\cryptsp.dll
\Windows\SysWOW64\davhlpr.dll
\Windows\SysWOW64\dbgcore.dll
\Windows\SysWOW64\dbghelp.dll
\Windows\SysWOW64\devobj.dll
\Windows\SysWOW64\dllhost.exe
\Windows\SysWOW64\dnsapi.dll
\Windows\SysWOW64\dui70.dll
\Windows\SysWOW64\duser.dll
\Windows\SysWOW64\dwmapi.dll
\Windows\SysWOW64\edputil.dll
\Windows\SysWOW64\ExplorerFrame.dll
\Windows\SysWOW64\FirewallAPI.dll
\Windows\SysWOW64\fltLib.dll
\Windows\SysWOW64\fwbase.dll
\Windows\SysWOW64\gdi32.dll
\Windows\SysWOW64\gdi32full.dll
\Windows\SysWOW64\iertutil.dll
\Windows\SysWOW64\imagehlp.dll
\Windows\SysWOW64\imageres.dll
\Windows\SysWOW64\imm32.dll
\Windows\SysWOW64\IPHLPAPI.DLL
\Windows\SysWOW64\kernel.appcore.dll
\Windows\SysWOW64\kernel32.dll
\Windows\SysWOW64\KernelBase.dll
\Windows\SysWOW64\mfc42.dll
\Windows\SysWOW64\mpr.dll
\Windows\SysWOW64\msasn1.dll
\Windows\SysWOW64\msi.dll
\Windows\SysWOW64\msimg32.dll
\Windows\SysWOW64\msvcp_win.dll
\Windows\SysWOW64\msvcrt.dll
\Windows\SysWOW64\netapi32.dll
\Windows\SysWOW64\netutils.dll
\Windows\SysWOW64\nsi.dll
\Windows\SysWOW64\ntdll.dll
\Windows\SysWOW64\NtlmShared.dll
\Windows\SysWOW64\ntmarta.dll
\Windows\SysWOW64\ole32.dll
\Windows\SysWOW64\oleacc.dll
\Windows\SysWOW64\oleaccrc.dll
\Windows\SysWOW64\oleaut32.dll
\Windows\SysWOW64\oledlg.dll
\Windows\SysWOW64\olepro32.dll
\Windows\SysWOW64\pdh.dll
\Windows\SysWOW64\powrprof.dll
\Windows\SysWOW64\profapi.dll
\Windows\SysWOW64\propsys.dll
\Windows\SysWOW64\psapi.dll
\Windows\SysWOW64\reg.exe
\Windows\SysWOW64\regsvr32.exe
\Windows\SysWOW64\rpcrt4.dll
\Windows\SysWOW64\rsaenh.dll
\Windows\SysWOW64\rundll32.exe
\Windows\SysWOW64\samcli.dll
\Windows\SysWOW64\sechost.dll
\Windows\SysWOW64\secur32.dll
\Windows\SysWOW64\SensApi.dll
\Windows\SysWOW64\setupapi.dll
\Windows\SysWOW64\SHCore.dll
\Windows\SysWOW64\shell32.dll
\Windows\SysWOW64\shfolder.dll
\Windows\SysWOW64\shlwapi.dll
\Windows\SysWOW64\spfileq.dll
\Windows\SysWOW64\sspicli.dll
\Windows\SysWOW64\stdole2.tlb
\Windows\SysWOW64\ucrtbase.dll
\Windows\SysWOW64\ulib.dll
\Windows\SysWOW64\umpdc.dll
\Windows\SysWOW64\urlmon.dll
\Windows\SysWOW64\user32.dll
\Windows\SysWOW64\userenv.dll
\Windows\SysWOW64\usp10.dll
\Windows\SysWOW64\uxtheme.dll
\Windows\SysWOW64\version.dll
\Windows\SysWOW64\wimgapi.dll
\Windows\SysWOW64\win32u.dll
\Windows\SysWOW64\windows.storage.dll
\Windows\SysWOW64\WindowsCodecs.dll
\Windows\SysWOW64\winhttp.dll
\Windows\SysWOW64\wininet.dll
\Windows\SysWOW64\winmm.dll
\Windows\SysWOW64\winmmbase.dll
\Windows\SysWOW64\winnsi.dll
\Windows\SysWOW64\winspool.drv
\Windows\SysWOW64\wintrust.dll
\Windows\SysWOW64\WinTypes.dll
\Windows\SysWOW64\wkscli.dll
\Windows\SysWOW64\ws2_32.dll
\Windows\SysWOW64\wsock32.dll
\Windows\SysWOW64\wtsapi32.dll
\Windows\SysWOW64\xmllite.dll

32位程序支持

\Windows\WinSxS\Manifests\wow64_microsoft.windows.gdiplus.systemcopy_31bf3856ad364e35_10.0.18362.592_none_46ce3536bc334afc.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_5.82.18362.592_zh-cn_e76b485c6ea9b8b4.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_6.0.18362.592_zh-cn_a3ff9bbb3b56f307.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.18362.592_none_71d995095ae1acb5.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.592_none_2e6de868278ee708.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.18362.592_none_70076c68e91b872f.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.18362.592_none_5f58db4d822160d6.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.i..utomation.proxystub_6595b64144ccf1df_1.0.18362.592_none_8970e91bb4e25d44.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.isolationautomation_6595b64144ccf1df_1.0.18362.592_none_dff997e855d84330.manifest
\Windows\WinSxS\Manifests\x86_microsoft.windows.systemcompatible_6595b64144ccf1df_6.0.18362.592_none_360a2b4be425d50f.manifest
\Windows\WinSxS\Manifests\x86_microsoft-windows-comctl32-v5.resources_31bf3856ad364e35_10.0.18362.1_zh-cn_388f02b141dfdce2.manifest
\Windows\WinSxS\wow64_microsoft.windows.gdiplus.systemcopy_31bf3856ad364e35_10.0.18362.592_none_46ce3536bc334afc
\Windows\WinSxS\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_5.82.18362.592_zh-cn_e76b485c6ea9b8b4
\Windows\WinSxS\x86_microsoft.windows.c..-controls.resources_6595b64144ccf1df_6.0.18362.592_zh-cn_a3ff9bbb3b56f307
\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.18362.592_none_71d995095ae1acb5
\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.592_none_2e6de868278ee708
\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.18362.592_none_70076c68e91b872f
\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.18362.592_none_5f58db4d822160d6



回复

使用道具 举报

36#
发表于 2020-11-26 15:08:26 | 只看该作者
加入后启动后如图

回复

使用道具 举报

37#
发表于 2020-11-27 15:40:55 | 只看该作者
本帖最后由 bfgxp 于 2020-11-27 15:59 编辑

楼主,适当使用findstr的 /L 参数可以显示加快处理速度/L参数的意思就是原文处理,不会将.*\转义试了33楼的脚本,似乎也不慢
copy Winre.wim boot.wim /y
%~dp0wimlib\wimlib.exe dir Winre.wim 1 > %~dp0wimlib\2List.txt
copy %~dp0wimlib\add3.txt %~dp0wimlib\add.txt /y
findstr /vil "s\3ware.s s\acpi.s s\AcpiDev.s s\acpiex.s s\acpipagr.s s\acpitime.s s\adp80xx.s s\afd.s s\agilevpn.s s\amdgpio2.s s\amdi2c.s s\amdk8.s s\amdppm.s s\amdsata.s s\amdsbs.s s\amdxata.s s\arcsas.s s\asyncmac.s s\atapi.s s\ataport.s s\battc.s s\beep.s s\bowser.s s\bttflt.s s\buttonconverter.s s\cdfs.s s\cdrom.s s\CEA.s s\cht4vfx.s s\cht4vx64.s s\Classpnp.s s\clfs.s s\ClipSp.s s\CmBatt.s s\cmimcext.s s\cng.s s\condrv.s s\crashdmp.s s\dfsc.s s\disk.s s\Diskdump.s s\Dmpusbstor.s s\dmvsc.s s\DriverData s\drmk.s s\drmkaud.s s\Dumpata.s s\dumpfve.s s\dumpsd.s s\Dumpstorport.s s\dxgkrnl.s s\dxgmms1.s s\dxgmms2.s s\EhStorClass.s s\en-US s\errdev.s s\etc s\exfat.s s\fastfat.s s\fbwf.s s\fileinfo.s s\filetrace.s s\flpydisk.s s\fltMgr.s s\fsdepends.s s\fs_rec.s s\fvevol.s s\FWPKCLNT.s s\hidbatt.s s\hidclass.s s\hidi2c.s s\hidinterrupt.s s\hidparse.s s\hidspi.s s\hidusb.s s\HpSAMD.s s\hvsocket.s s\hwpolicy.s s\hyperkbd.s s\HyperVideo.s s\i8042prt.s s\iagpio.s s\iai2c.s s\iaLPSS2i_GPIO2.s s\iaLPSS2i_GPIO2_BXT_P.s s\iaLPSS2i_GPIO2_CNL.s s\iaLPSS2i_GPIO2_GLK.s s\iaLPSS2i_I2C.s s\iaLPSS2i_I2C_BXT_P.s s\iaLPSS2i_I2C_CNL.s s\iaLPSS2i_I2C_GLK.s s\iaLPSSi_GPIO.s s\iaLPSSi_I2C.s s\iaStorAVC.s s\iaStorV.s s\ibbus.s s\intelide.s s\intelppm.s s\ipfltdrv.s s\IPMIDrv.s s\ipnat.s s\isapnp.s s\ItSas35i.s s\kbdclass.s s\kbdhid.s s\kdnic.s s\ks.s s\ksecdd.s s\ksecpkg.s s\ksthunk.s s\lltdio.s s\lsi_sas.s s\lsi_sas2i.s s\lsi_sas3i.s s\lsi_sss.s s\mausbhost.s s\mausbip.s s\mcd.s s\megasas.s s\MegaSas2i.s s\megasas35i.s s\megasr.s s\mlx4_bus.s s\mmcss.s s\monitor.s s\mouclass.s s\mouhid.s s\mountmgr.s s\mpsdrv.s s\mrxsmb.s s\mrxsmb20.s s\msfs.s s\msgpioclx.s s\mshidkmdf.s s\msisadrv.s s\mskssrv.s s\mslldp.s s\mspclock.s s\mspqm.s s\msquic.s s\msrpc.s s\mssmbios.s s\mstee.s s\MTConfig.s s\mtpHelper.s s\mup.s s\mvumis.s s\ndfltr.s s\ndis.s s\ndiscap.s s\NdisImPlatform.s s\ndistapi.s s\ndisuio.s s\NdisVirtualBus.s s\ndiswan.s s\ndproxy.s s\NetAdapterCx.s s\netbios.s s\netbt.s s\netio.s s\netvsc.s s\npfs.s s\npsvctrig.s s\nsiproxy.s s\ntfs.s s\ntosext.s s\null.s s\nvdimm.s s\nvraid.s s\nvstor.s s\nwifi.s s\parport.s s\partmgr.s s\pci.s s\pciide.s s\pciidex.s s\pcw.s s\pdc.s s\percsas2i.s s\percsas3i.s s\pmem.s s\portcfg.s s\portcls.s s\processr.s s\ramdisk.s s\rasacd.s s\rasl2tp.s s\raspptp.s s\rassstp.s s\rdbss.s s\refs.s s\RNDISMP.s s\rspndr.s s\sacdrv.s s\sbp2port.s s\scmbus.s s\scsiport.s s\sdbus.s s\sdport.s s\sdstor.s s\SerCx.s s\SerCx2.s s\serenum.s s\serial.s s\sermouse.s s\sfloppy.s s\sisraid2.s s\sisraid4.s s\SleepStudyHelper.s s\SmartSAMD.s s\smclib.s s\spacedump.s s\spaceport.s s\SpbCx.s s\srv2.s s\srvnet.s s\stexstor.s s\storahci.s s\stornvme.s s\storport.s s\storqosflt.s s\storufs.s s\storvsc.s s\stream.s s\tbs.s s\tcpip.s s\tcpipreg.s s\tdi.s s\tdx.s s\tm.s s\tunnel.s s\uaspstor.s s\Ucx01000.s s\Udecx.s s\udfs.s s\ufxsynopsys.s s\UMDF s\umpass.s s\usb8023.s s\usbccgp.s s\usbd.s s\usbehci.s s\usbhub.s s\USBHUB3.s s\usbohci.s s\usbport.s s\usbser.s s\USBSTOR.s s\usbuhci.s s\USBXHCI.s s\vdrvroot.s s\VerifierExt.s s\vhdmp.s s\vhf.s s\videoprt.s s\vmbkmcl.s s\vmbus.s s\VMBusHID.s s\vmstorfl.s s\volmgr.s s\volmgrx.s s\volsnap.s s\volume.s s\vsmraid.s s\VSTXRAID.s s\vwifibus.s s\vwififlt.s s\vwifimp.s s\wacompen.s s\wanarp.s s\watchdog.s s\Wdf01000.s s\WdfLdr.s s\WdiWiFi.s s\werkernel.s s\wfplwfs.s s\wimfsf.s s\wimmount.s s\winhv.s s\winmad.s s\winusb.s s\winverbs.s s\wmiacpi.s s\wmilib.s s\wof.s s\WpdUpFltr.s s\WppRecorder.s s\ws2ifsl.s s\WUDFPf.s s\WUDFRd.s" %~dp0wimlib\2list.txt >%~dp0wimlib\3list.txt
echo 保留System32.drivers驱动
::pause
findstr /vil "\3ware.in \acpi.in \acpidev.in \acpipagr.in \acpitime.in \adp80xx.in \amdgpio2.in \amdi2c.in \amdsata.in \amdsbs.in \arcsas.in \basicdisplay.in \basicrender.in \battery.in \buttonconverter.in \c_apo.in \c_avc.in \c_battery.in \c_biometric.in \c_cdrom.in \c_computeaccelerator.in \c_computer.in \c_diskdrive.in \c_display.in \c_extension.in \c_firmware.in \c_hdc.in \c_hidclass.in \c_image.in \c_keyboard.in \c_legacydriver.in \c_mcx.in \c_media.in \c_mediumchanger.in \c_memory.in \c_modem.in \c_monitor.in \c_mouse.in \c_mtd.in \c_multifunction.in \c_multiportserial.in \c_net.in \c_netdriver.in \c_netservice.in \c_nettrans.in \c_ports.in \c_processor.in \c_proximity.in \c_sbp2.in \c_scmdisk.in \c_scmvolume.in \c_scsiadapter.in \c_sdhost.in \c_smartcard.in \c_smartcardfilter.in \c_smartcardreader.in \c_smrdisk.in \c_smrvolume.in \c_sslaccel.in \c_swcomponent.in \c_swdevice.in \c_system.in \c_ucm.in \c_unknown.in \c_usb.in \c_usbdevice.in \c_usbfn.in \c_volsnap.in \c_volume.in \c_wceusbs.in \dc21x4vm.in \disk.in \dwup.in \e2xw10x64.in \ehstortcgdrv.in \errata.in \errdev.in \genericusbfn.in \hal.in \halextintclpiodma.in \halextpl080.in \hidbatt.in \hiddigi.in \hidi2c.in \hidinterrupt.in \hidserv.in \hidspi_km.in \hidvhf.in \hpsamd.in \iagpio.in \iai2c.in \iaLPSS2i_GPIO2_BXT_P.in \iaLPSS2i_GPIO2_CNL.in \iaLPSS2i_GPIO2_GLK.in \iaLPSS2i_GPIO2_SKL.in \iaLPSS2i_I2C_BXT_P.in \iaLPSS2i_I2C_CNL.in \iaLPSS2i_I2C_GLK.in \iaLPSS2i_I2C_SKL.in \ialpssi_gpio.in \ialpssi_i2c.in \iastorav.in \iastorv.in \input.in \ipmidrv.in \ipoib6x.in \iscsi.in \ItSas35i.in \kdnic.in \keyboard.in \lltdio.in \lsi_sas.in \lsi_sas2i.in \lsi_sas3i.in \lsi_sss.in \machine.in \mausbhost.in \mchgr.in \megasas.in \megasas2i.in \megasas35i.in \megasr.in \mf.in \mlx4_bus.in \mshdc.in \msmouse.in \msports.in \mssmbios.in \mtconfig.in \mvumis.in \ndisimplatform.in \ndisimplatformmp.in \ndisuio.in \ndisvirtualbus.in \net1ix64.in \net1yx64.in \net40i68.in \net44amd.in \net7400-x64-n650.in \net7500-x64-n650f.in \net7800-x64-n650f.in \net9500-x64-n650f.in \netax88179_178a.in \netax88772.in \nete1e3e.in \nete1g3e.in \netefe3e.in \netg664.in \netimm.in \netip6.in \netjme.in \netk57a.in \netl160a.in \netl1e64.in \netl260a.in \netloop.in \netmscli.in \netmyk64.in \netnb.in \netnvma.in \netnwifi.in \netrasa.in \netrass.in \netrast.in \netrtl64.in \netserv.in \netsstpa.in \nett4x64.in \nettcpip.in \netvf63a.in \netvg63a.in \netxex64.in \netxix64.in \npsvctrig.in \nvdimm.in \nvraid.in \pci.in \percsas2i.in \percsas3i.in \pmem.in \puwk.in \qd3x64.in \ramdisk.in \rawsilo.in \rdshup.in \rspndr.in \rt640x64.in \rtux64w10.in \sbp2.in \sceregvl.in \scmbus.in \scmvolume.in \scsidev.in \sdbus.in \sdstor.in \secrecs.in \sisraid2.in \sisraid4.in \SmartSAMD.in \smrdisk.in \smrvolume.in \spaceport.in \stexstor.in \stornvme.in \storufs.in \swenum.in \uaspstor.in \uefi.in \ufxchipidea.in \ufxsynopsys.in \umbus.in \umpass.in \unknown.in \usb.in \usbhub3.in \usbnet.in \usbport.in \usbser.in \usbstor.in \usbxhci.in \vdrvroot.in \vhdmp.in \virtdisk.in \volmgr.in \volsnap.in \volume.in \vsmraid.in \vstxraid.in \wdmvsc.in \whyperkbd.in \wmiacpi.in \wnetvsc.in \wstorflt.in \wstorvsc.in \wvmbus.in \wvmbushid.in \wvmbusvideo.in \ykinx64.in" %~dp0wimlib\3list.txt >%~dp0wimlib\4list.txt
echo 保留DriverStore.FileRepository及INF(L大驱动列表)
::pause
findstr /vil "L2Schemas\OneX_v1.xsd L2Schemas\WFD_LEGACY_profile_v1.xsd L2Schemas\WFD_profile_v1.xsd L2Schemas\WLANAP_profile_v1.xsd L2Schemas\WLAN_policy_v1.xsd L2Schemas\WLAN_profile_v1.xsd L2Schemas\WLAN_profile_v2.xsd L2Schemas\WLAN_profile_v3.xsd" %~dp0wimlib\4list.txt >%~dp0wimlib\5list.txt
echo 保留xsd
::pause
findstr /vil "32\CatRoot aero\aero.msstyles aero\zh-CN\aero.msstyles.mui SystemResources\propsys.dll.mun Fonts\simsun.ttc Sorting\SortDefault.nls 32\Boot\winload. CodeIntegrity\driver.stl WinSxS" %~dp0wimlib\5list.txt >%~dp0wimlib\6list.txt
echo 保留其他
::pause
findstr /vil "\aclui.dll \advapi32.dll \aepic.dll \apisetschema.dll \asycfilt.dll \atl.dll \authz.dll \basesrv.dll \bcd.dll \bcdboot.exe \bcdedit.exe \BCP47Langs.dll \BCP47mrm.dll \bcrypt.dll \bcryptprimitives.dll \BFE.DLL \BOOTVID.DLL \BrokerLib.dll \cabinet.dll \cdd.dll \cfgmgr32.dll \chkdsk.exe \ci.dll \clb.dll \cmd.exe \cmdext.dll \combase.dll \comdlg32.dll \coml2.dll \conhost.exe \console.dll \credui.dll \crypt32.dll \cryptbase.dll \cryptdll.dll \cryptsp.dll \cryptsvc.dll \csrsrv.dll \csrss.exe \C_1251.NLS \C_1252.NLS \C_1258.NLS \C_20127.NLS \C_437.NLS \C_936.NLS \d2d1.dll \d3d10_1.dll \d3d10_1core.dll \d3d11.dll \d3d9.dll \dab.dll \dabapi.dll \dbgcore.dll \dbghelp.dll \devobj.dll \devrtl.dll \dhcpcmonitor.dll \dhcpcore.dll \dhcpcore6.dll \dhcpcsvc.dll \dhcpcsvc6.dll \diskpart.exe \dllhost.exe \dllhst3g.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 \eappcfg.dll \eapphost.dll \eappprxy.dll \eapsvc.dll \EventAggregation.dll \feclient.dll \find.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 \msdmo.dll \msftedit.dll \msimg32.dll \msports.dll \msprivs.dll \msv1_0.dll \msvcp110_win.dll \msvcp_win.dll \msvcrt.dll \mswsock.dll \msxml3.dll \msxml3r.dll \msxml6.dll \msxml6r.dll \ncrypt.dll \ncsi.dll \net \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 \PING.EXE \powrprof.dll \profapi.dll \propsys.dll \psapi.dll \PSHED.DLL \rasadhlp.dll \rasapi32.dll \raschap.dll \rasman.dll \rastls.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 \SensApi.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 \tier2punctuations.dll \TimeBrokerClient.dll \TimeBrokerServer.dll \tokenbinding.dll \ucrtbase.dll \uexfat.dll \ufat.dll \ulib.dll \umpdc.dll \umpnpmgr.dll \umpo.dll \unattend.dll \untfs.dll \uReFS.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 \WcnEapPeerProxy.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 \Windows.Storage.OneCore.dll \WindowsCodecs.dll \winhttp.dll \wininet.dll \wininit.exe \wininitext.dll \winlogon.exe \winmm.dll \winmmbase.dll \winnlsres.dll \winnsi.dll \winpeshl.exe \winpeshl.ini \WinSCard.dll \winspool.drv \winsrv.dll \winsrvext.dll \winsta.dll \wintrust.dll \WinTypes.dll \wkscli.dll \wkssvc.dll \wlan \Wldap32.dll \wldp.dll \wmiclnt.dll \wpeutil.dll \wpeutil.exe \ws2_32.dll \wshhyperv.dll \wship6.dll \WSHTCPIP.DLL \wsock32.dll \wtsapi32.dll \xcopy.exe \xmllite.dll" %~dp0wimlib\6list.txt >%~dp0wimlib\7list.txt
echo 保留System32
::pause
findstr /r "\." %~dp0wimlib\7list.txt >%~dp0wimlib\8list.txt

echo 保留WinSxS
del %~dp0wimlib\delSxS.txt /F /Q

findstr /il "WinSxS" %~dp0wimlib\2list.txt>%~dp0wimlib\1SxSlist.txt
::pause
findstr /i /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" %~dp0wimlib\1SxSlist.txt>%~dp0wimlib\SxSlist.txt
::pause
findstr /r "\." %~dp0wimlib\SxSlist.txt >%~dp0wimlib\2SxSlist.txt
::pause




点评

请问bfgxp兄这样从点击运行批处理开始计时一路龙下来到制作出pe.WIM为止话费多少秒?  详情 回复 发表于 2020-11-27 17:21
回复

使用道具 举报

38#
发表于 2020-11-27 16:40:13 | 只看该作者
壁纸好评
回复

使用道具 举报

39#
 楼主| 发表于 2020-11-27 17:21:18 | 只看该作者
bfgxp 发表于 2020-11-27 15:40
楼主,适当使用findstr的 /L 参数可以显示加快处理速度/L参数的意思就是原文处理,不会将.*\转义试了33楼的 ...

请问bfgxp兄这样从点击运行批处理开始计时一路龙下来到制作出pe.WIM为止话费多少秒?
回复

使用道具 举报

40#
发表于 2020-11-28 19:09:14 | 只看该作者
来个7秒的批处理
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

点评

bfgxp兄可以试试把 %~dp0\wimlib dir winre.wim | find ".">1List.TXT这后面加一条 %~dp0\wimlib dir winre.wim —path=Windows\WinSxS | find ".">WinSxSList.TXT 这样的路径只导出winsxs里的文件列表范围小 后  详情 回复 发表于 2020-11-28 19:50
回复

使用道具 举报

41#
 楼主| 发表于 2020-11-28 19:50:55 | 只看该作者
bfgxp 发表于 2020-11-28 19:09
来个7秒的批处理
copy Winre.wim boot.wim /y
@echo off

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秒再缩短到5秒左右,我在医院陪产没法实验,请bfgxp兄有空验证一下我的这个利用wimlib的- -path=路径来缩小文本匹配范围的方法是否能奏效来缩短批处理的查找时间?



回复

使用道具 举报

42#
发表于 2021-10-28 15:54:07 | 只看该作者
多谢分享,研究一下。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-11-17 05:50

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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