加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows10 Powershell批量更改后缀名

发布时间:2020-12-14 01:37:39 所属栏目:Windows 来源:网络整理
导读:操作系统 :Windows10 1809 使用工具 :Powershell 命令 : 1 (dir ‘ 文件目录*.原后缀名 ‘ )|rename-item -newname { $_.name -replace ‘ .原后缀名 ‘ , ‘ .要更改后缀名 ‘ } 范例 : 1 (dir ‘ D:My DocumentsworksDownloadspowershell*.txt

操作系统:Windows10 1809

使用工具:Powershell

命令

1 (dir 文件目录*.原后缀名)|rename-item -newname { $_.name -replace .原后缀名,.要更改后缀名 } 

范例

1 (dir D:My DocumentsworksDownloadspowershell*.txt)|rename-item -newname { $_.name -replace .txt,.log } 

?

来自 <https://zhidao.baidu.com/question/384260033.html?qbl=relate_question_0&word=powershell%20%D0%DE%B8%C4%CE%C4%BC%FE%BA%F3%D7%BA>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读