Windows 批处理脚本

原名:batch-files

编写、排查和维护 Windows BAT/CMD 脚本,处理常见文件、环境和命令行任务。

中文 Skills 技能说明

适合仍依赖 cmd.exe 的企业软件、部署和运维流程。生成脚本前确认路径、编码和运行权限,文件删除、注册表、服务和系统设置必须先展示影响与回退;复杂新项目优先评估 PowerShell。

上游能力依据

上游原始适用说明:Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts. Use when asked to "create a batch file", "write a .bat script", "automate a Windows task", "CMD scripting", "batch automation", "scheduled task script", "Windows shell script", or when working with .bat/.cmd files in the workspace. Covers cmd.exe syntax, environment variables, control flow, string processing, error handling, and integration with system tools.

上游 SKILL.md 主要章节(保留原文标题):

使用边界

先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。

作者、翻译与许可证

原作者
GitHub, Inc. 与 awesome-copilot contributors
中文翻译
CEOFans翻译
许可证
MIT
上游来源
https://github.com/github/awesome-copilot/tree/782200e3a4f7c17248974ac4a63284c868bc290f/skills/batch-files

适用范围

平台:linux、macos、windows;标签:软件开发、Windows 批处理脚本

安全提示

基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。

如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。