1 Star 0 Fork 11

beybeyzk/newbeepe

forked from 江南一根葱/newbeepe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Make_Winxshell_MiniX64_WithWhitelist.bat 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
江南一根葱 提交于 2021-05-03 17:00 . support tftp
@echo off
cd /d %~dp0
del /q excel.txt
for /f %%a in ('dir /b %~dp0*.wim') do set bootwim=%%a
copy /y %bootwim% %~dp0minix64.wim
::增删文件
echo. & echo 开始时间:%time% & set startT=%time%
echo. & echo 稍候………………
if exist blacklist.txt del blacklist.txt /f /q
for /f "delims=" %%i in (bin\Win10x86_64.txt) do (
echo %%i | find ".exe" >NUL && (
for /f "delims=" %%a in ('bin\wimlib dir %~dp0minix64.wim 1 ^| find "." ^| findstr /vil "%%i"') do echo delete --force --recursive "%%a">>excel.txt
) || (
for /f "delims=" %%a in ('bin\wimlib dir %~dp0minix64.wim 1 --path=windows\winsxs ^| find "." ^| findstr /vi "%%i"') do echo delete --force --recursive "%%a">>excel.txt
)
)
echo. & echo 正在增删削减%~dp0minix64.wim包里的文件制作PE过程中,请您稍微等待 ...... & echo.
bin\wimlib dir %~dp0minix64.wim 1 --path=Windows\SysWOW64 | find ".exe" >NUL && (set FD=x64) || (set FD=x86)
bin\wimlib update %~dp0minix64.wim<excel.txt>NUL
bin\wimlib update %~dp0minix64.wim<%FD%\add2wimnewbee.txt>NUL
bin\wimlib update %~dp0minix64.wim -command="delete --force --recursive \Windows\SysWOW64"
bin\wimlib update %~dp0minix64.wim -command="delete --force \Windows\explorer.exe"
bin\wimlib update %~dp0minix64.wim -command="delete --force \Windows\pecmd.ini"
bin\wimlib optimize %~dp0minix64.wim
del /q excel.txt
echo. & echo 制作完成 & echo.
:::制作完成
EXIT
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/beybeyzk/newbeepe.git
[email protected]:beybeyzk/newbeepe.git
beybeyzk
newbeepe
newbeepe
main

搜索帮助