技术栈

Windows使用PowerShell批量修改文件后缀

喵个咪2024-09-22 14:23
powershell 复制代码
Get-ChildItem -Path "." -Recurse -Include "*.js" | ForEach-Object -Begin { $Counter = 1 } -Process { 
    $newName = $_.BaseName + ".ts"
    Rename-Item $_.FullName -NewName $newName
    $Counter++ 
}
上一篇:Spring Boot 入门:解锁 Spring 全家桶
下一篇:IOS 25 实现歌单详情(UITableView)列表 ②
相关推荐
ScilogyHunter
2 天前
Zephyr Shell完全指南
shell·zephyr
七夜zippoe
2 天前
OpenClaw 节点命令执行:远程Shell与系统操作实战
github·shell·openclaw·nodes·系统操作
Mr -老鬼
5 天前
EasyClick 入门指南:Shell 命令与 ADB 完全指南
android·adb·自动化·shell·easyclick·易点云测
tianyuanwo
8 天前
Shell 脚本中的“字典”功能:从基础到工程化的最佳实践
shell·字典
爱睡觉111
8 天前
在 Android 模拟器 Shell 下运行 ncnn 推理的性能排查记录
linux·shell
Bolt
10 天前
Kimi code 用不了 Figma?看这里解决
shell·mcp
星光不问赶路人
11 天前
Shell 脚本避坑指南:从模式匹配到错误处理的实用技巧
shell
pr_note
12 天前
balance_points
shell·tcl
pr_note
12 天前
icc2/fc屏蔽指定warning
shell·tcl
诸神缄默不语
19 天前
Linux shell脚本教程
linux·bash·shell·sh
热门推荐
01HTTP 与 HTTPS 的区别:从原理到实战详解022026年6月AI行业全景:从百模大战到Agent元年,这30天发生了什么?032026 AI 编程工具终极实战指南:Cursor vs Claude Code vs Copilot,开发者该怎么选?04【AI】2026 年具身智能模型和世界模型总结05GitHub 镜像站点062026 年 AI 编程工具终极横评:Cursor vs Claude Code vs Copilot vs Windsurf07AI科技热点日报 | 2026年6月1日08《置身钉内》原文-可播放阅读09Claude Code、Codex、Cursor三分天下:2026年AI编程Agent生态全景剖析10上线仅72小时被强制下架:Claude Fable 5 的短命