Windows의 PowerShell을 사용하여,

특정 폴더 하위 폴더 포함하여 파일명 일괄 변경 방법

 

1. PowerShell 실행

- windows 시작 > 프로그램 및 파일 검색 > "powershell" 입력 > 검색된 powershell 실행

 

2. powershell 실행

- 특정 폴더 지정 : C:\Users\USER\Desktop\mssql

- 하위 폴더 전체 대상 : -Recurse

- 파일명 변경 대상 : ".xml" ==>> "_mssql.xml"

Get-ChildItem "C:\Users\USER\Desktop\mssql" -Recurse | Rename-Item -NewName { $_.Name -replace ".xml", "_mssql.xml" }

 

 

 

 

Posted by 우라질레이터

urajilation@gmail.com
우라질레이터

달력

태그목록