I'm trying to trim the sub-folders of my music directory . I want to remove everything behind the "(" in the folder names.
example:
d: \ media \ folder1 (2011)
d: \ media \ folder2 (2012)
what I want to keep is:
d: \ media \ folder1
d: \ media \ folder2
can it be done with powershell?