惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - 扬中源

解决Avalonia.Markup.Xaml.XamlLoadException:“No precompiled XAML found for _xxxx.App, make sure to specify x:Class and include your XAML file as AvaloniaResource” vs2022 android模拟器闪退 VS2022 C# grpc遇到的问题 在Avalonia中,如何移除高度的值,使其为NaN 用完我的风扇终于不吵了。 Avalonia跨平台嵌入浏览器的方法 Excel把一列数据变两列,带条件分组的行变列 yellowbrick中ClassificationReport多分类图标一行数据异常全为0 ModuleNotFoundError: No module named 'yellowbrick.features.importances' 动手学深度学习MXNet配置 用Goaccess对Nginx进行性能监控windows版 只能判断文件图片类型,并修改文件名 微信电脑版提取微信小程序中的音频 NFC手机制作备用门禁卡 win7有些电脑form布局发生变化 微信小程序wepy textbox根据内容自动调整高度 Oracle连接错误解决办法 cef chromium相关
用bat批处理,winrar备份文件夹并排除特定子文件夹
扬中源 · 2024-04-10 · via 博客园 - 扬中源

bat文件:

@echo off
setlocal

rem 设置需要压缩的文件夹路径
set "source_folder=folder1"

rem 设置压缩后的文件名和路径
set "output_zip=folder1.zip"

rem 使用 WinRAR 命令进行压缩
echo Compressing folder %source_folder% ...
"%ProgramFiles%\WinRAR\WinRAR.exe" a -ag -r -ibck -x*/bin/* -x*/obj/* -x*/BJKS_PSD2024/* "%output_zip%" "%source_folder%"

echo Compression completed.

endlocal

说明:

folder1是指与bat同级的文件夹名称,待压缩的文件夹

output_zip 是压缩生成的文件名,由于参数-ag,会自动在该名称后增加日期时间

 -x*/bin/* -x*/obj/* -x*/BJKS_PSD2024/* 是需要排除的子文件夹名称