Chyron 254 Posted November 12, 2018 Posted November 12, 2018 Having previously used Plex primarily for my media usage, my extras (featurettes, behind the scenes, et al.) are labeled as: \Movies\[Movie (Year)]\[title]-featurette.m4v How do I bulk move everything in bulk to subfolders relative to their present locations and rename them? I'm aware that Bulk Rename Utility can maybe do this, but I can't figure out how to use it. I already accidentally made my Apollo 13 extras disappear to God-knows-where by telling Bulk Rename Utility to move them to .\Featurettes\, which apparently doesn't do what I thought it would. Can anyone help me out?
Happy2Play 9442 Posted November 12, 2018 Posted November 12, 2018 (edited) Powershell $Directories = GCI "ENTER YOUR MOVIES PATH" Foreach($Directory in $Directories){ $Featurette = GCI $Directory.FullName -Recurse -File -Filter *featurette* IF($Featurette){ IF(!(Test-Path "$($Directory.FullName)\Featurettes")){ New-Item "$($Directory.FullName)\Featurettes" -Type Directory } Move-Item $Featurette.FullName "$($Directory.FullName)\Featurettes" } } Tested on a dummy test library without issue. Only tested moving featurette to Featurettes subfolder. But same concept for others as shown in like below. Got from here https://www.reddit.com/r/PowerShell/comments/9baick/this_seemed_like_a_simple_goal_but_turns_out_i/ Edited November 12, 2018 by Happy2Play 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now