技术栈

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)列表 ②
相关推荐
phenhorlin
7 天前
我做了个工具,让切换 Homebrew 镜像像切 npm 源一样简单
后端·shell
qq_37501333
20 天前
shell
shell
Strugglingler
21 天前
基于whiptail开发shell导航工具
linux·shell·ui设计·whiptail
亚林瓜子
22 天前
AWS Glue Python Shell中获取外网ip
python·tcp/ip·http·shell·aws·vpc·glue
爱凤的小光
22 天前
GDB调试技巧与指令完全指南---个人学习篇
shell·gdb
亚林瓜子
22 天前
AWS Glue Python Shell任务中pip安装依赖库
python·shell·pip·aws·glue·job
亚林瓜子
22 天前
AWS Glue Python Shell任务中读取Athena数据库
数据库·python·shell·aws·glue·athena
SilentSamsara
24 天前
Linux磁盘与存储管理:分区、LVM 与 IO 性能全栈分析
linux·运维·服务器·ssh·shell
热门推荐
01GitHub 镜像站点02Codex 接入 DeepSeek API 完整配置文档03零基础教你claude code 接入 deepseek V404要裂开了!ChatGPT要手机号验证了?注册Codex要求验证电话号码怎么办?2026年登陆Codex要手机号验证的解决办法05Dirtyfrag漏洞:我花了一下午搞清楚这个Linux内核提权漏洞到底在搞什么06CC-Switch & Claude 基于 Linux 服务器安装使用指南07Windows端Codex接入第三方模型(DeekSeek,BaiLian)08【AI】2026 年具身智能模型和世界模型总结09裂开!ChatGPT 居然开始要手机号验证,附详细解决方法10Linux 核弹级高危漏洞 CVE-2026-31431 完整修复指南