Forum Discussion
MrSnowman2010
Aug 17, 2021Copper Contributor
Help With Filename Comparisons and Output
Hi all, I'm looking for some help if possible. Please bear in mind I am a complete Powershell novice so feel free to dumb things down as appropriate. Also apologies if this is in the wrong sectio...
Jan 30, 2022
You could add this after line 30, it selects the last 5 numbers from the name effectively removing any prefix 0's
$scanarray2= @($scanarray2 | ForEach-Object {$_.Substring($_.length -5,5)})