I would like to rename all the jpg files in a folder to uniform convention like Picture00000001.jpg where 00000001 is a counter.
It would be a walk in the park in C
Try this to get the FilenameWithOutExtension
$f.DirectoryName + "\" + $f.BaseName