---
id: sm-recipe-batch-rename-files
name: "recipe-batch-rename-files"
url: https://skills.yangsir.net/skill/sm-recipe-batch-rename-files
author: googleworkspace
domain: ai-productivity-automation
tags: ["file-management", "scripting", "automation", "google-drive-api", "batch-processing"]
install_count: 634
rating: 4.20 (43 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-batch-rename-files

> 批量重命名Google Drive中符合特定模式的文件，实现文件管理自动化，提高工作效率。

**Stats**: 634 installs · 4.2/5 (43 reviews)

## Before / After 对比

### Google Drive文件，批量智能重命名

## Readme

# recipe-batch-rename-files

# Batch Rename Google Drive Files

**PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`

Rename multiple Google Drive files matching a pattern to follow a consistent naming convention.

## Steps

- Find files to rename: `gws drive files list --params '{"q": "name contains '\''Report'\''"}' --format table`

- Rename a file: `gws drive files update --params '{"fileId": "FILE_ID"}' --json '{"name": "2025-Q1 Report - Final"}'`

- Verify the rename: `gws drive files get --params '{"fileId": "FILE_ID", "fields": "name"}'`

Weekly Installs634Repository[googleworkspace/cli](https://github.com/googleworkspace/cli)GitHub Stars21.4KFirst Seen14 days agoSecurity Audits[Gen Agent Trust HubPass](/googleworkspace/cli/recipe-batch-rename-files/security/agent-trust-hub)[SocketPass](/googleworkspace/cli/recipe-batch-rename-files/security/socket)[SnykPass](/googleworkspace/cli/recipe-batch-rename-files/security/snyk)Installed oncodex618gemini-cli616github-copilot616opencode616cursor615kimi-cli614

---
*Source: https://skills.yangsir.net/skill/sm-recipe-batch-rename-files*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-recipe-batch-rename-files/markdown*