![]() $total = Get-ChildItem -Filter $regex | measure # get a total count of the files that meet regex ![]() $extension = Read-Host "What extension do you want? ex.JPG " $file_name = Read-Host "What is new file name, without extension? ex. $regex = Read-Host "Regex for files you are looking for? ex. # PowerShell script to rename multiple files within a folder to a Here is the script I wrote: # filename: bulk_file_rename.ps1 I take hundreds of photos and the camera names them IMG1234.JPG etc. Now I can use it whenever I need to batch process file renaming. In my research I decided to write a script with PowerShell instead. ![]() didn't like the parentheses that windows puts in when you rename in bulk.
0 Comments
Leave a Reply. |