폴더에 있는 모든 폴더 경로값을 excel에 추출할때 사용한다.
Powershell 실행
# 특정 폴더 경로를 아래와 같이 설정하세요
$folderPath = "C:\your\directory\path"
# 결과를 저장할 엑셀 파일 경로
$outputPath = "C:\your\output\path\filePaths.csv"
# 모든 .java와 .xml 파일의 경로를 가져와 CSV로 저장
Get-ChildItem -Path $folderPath -Recurse -Include *.java, *.xml |
Select-Object FullName |
Export-Csv -Path $outputPath -NoTypeInformation -Encoding UTF8
명령어 작성 후 원하는 csv 파일로 저장
추출
폴더안에 있는 Full Path를 작성해준다.
'유용한' 카테고리의 다른 글
default boot device missing or boot failed 노트북 무한 부팅 해결 방법 , BIOS 모드 boot manager 안들어가질 경우 해결 방법 (0) | 2024.11.17 |
---|