윈도우(windows) 10, 11에서 여러(멀티) 파일들을 작성(생성)일자(시각) 순으로 파일명에 넘버링(numbering) 하는 방법
experience
- 이미지 파일 및 화면 캡쳐 파일들을 nas 에 올리려는데, nas에서는 주로 이름순으로 정렬해서 사용중이라.. 파일명에 넘버링을 해서 업로드하기 위해 방법을 찾아봄.
powershell을 이용하면 아래와 같이 가능함..
- 특정 디렉토리에 해당 파일들을 넣어두고, 탐색기에서 shift + 우클릭 > 여기에 powershell 창 열기
[ref]$i = 1; gci -file | Sort-Object LastWriteTime | Rename-Item -NewName {'{0:D4} - {1}' -f $i.Value++, $_}
위와 같이 입력하면 알아서 numbering됨..
변경전 어떻게 바뀔지 보고 싶으면 위 command 끝에 -whatif 를 붙이면 화면에 어떻게 바뀔지 출력이 됨.
from : https://answers.microsoft.com/en-us/windows/forum/all/how-to-number-files-sequentially-in-file-explore/610e3b52-a2a8-49fa-8616-44d5c16cd78f
댓글
댓글 쓰기