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

powershell 复制代码
Get-ChildItem -Path "." -Recurse -Include "*.js" | ForEach-Object -Begin { $Counter = 1 } -Process { 
    $newName = $_.BaseName + ".ts"
    Rename-Item $_.FullName -NewName $newName
    $Counter++ 
}
相关推荐
云上小朱2 天前
文件下载-ubuntu操作系统下载指定文件
linux·shell
岚天start5 天前
Shell脚本一键监控平台到期时间并钉钉告警推送指定人
linux·shell·钉钉告警·计划任务·监控到期·平台到期
czhc11400756635 天前
LINUX93 shell:sh -c ‘ ‘sh {}+
shell
误入运维泥潭7 天前
Shell脚本入门:从零到精通
shell·字符串处理·case语句
czhc11400756637 天前
Linux92 shell:倒计时,用户分类
shell
从零开始的ops生活7 天前
【Day 42】Shell-expect和sed
linux·运维·ssh·shell·expect
Johny_Zhao8 天前
达梦数据库高可用集群部署方案
linux·mysql·网络安全·docker·信息安全·kubernetes·云计算·shell·containerd·达梦数据库·yum源·系统运维·centos8
挖稀泥的工人8 天前
如何在Eletron中打开window的powershell
前端·electron·shell
sunny0529613 天前
Linux shell getopts 解析命令行参数
linux·运维·bash·shell
Johny_Zhao15 天前
Conda、Anaconda、Miniconda对比分析
linux·网络安全·信息安全·kubernetes·云计算·conda·shell·containerd·anaconda·yum源·系统运维·miniconda