I'm new here. I appreciate your help. I have multiple folder in current directory named like this:
word1 word2 word3 word4 word5 word6 word7 word8 word9
I need a batch-file to remove last n words with extra spaces of all folder's names and parenthesize last remaining word. As you see words are separated by space and their lengths are not the same for example if n=3 result in this:
word1 word2 word3 word4 word5 (word6)