im a noob to the cmd and windows powershell, i do not want to mess anything up so im asking smarter people...
this was my reference https://www.thomas-krenn.com/en/wiki/Cmd_commands_under_Windows
i tried: find *.png -exec mv {} ${foo: -4} ; but i got this "find: parameter format not correct"
can anyone tell me how i messed up?
im trying to remove the last 4 digits of every .png file in a folder. to be clear, im not trying to overrite the .png extension. only the last 4 digits of the name
I will use this in powershell:
dir(alias toGet-ChildItem) will recursively list .png files. (-rec->-recurse,-filt->-filter)ren(alias toRename-Item)-newn(goes to-newname)\dmatches a digit,{4}matches exactly 4 instances,$matches at end of string) and join the extension,$_goes to the pipeline item.