I have several thousand file names delimited as such:
Last, First-000000-Title-MonYYYY.pdf
Probem 1: Some files conform to the 6-digit convention while others need leading zeroes for consistency.
Problem 2: Some names are entered with dashes (which are, problematically, delimiters) which need to be joined as such: Last-Last, First > LastLast, First
I'm able to perform a simple Rename-Item
function for each file but have not been able to create a broader Get-ChildItem
function taking into account the several iterations of file names to generate a consistent output.
Apologies for the entry-level question but I cannot seem to coherently draw together the required functions.