I am trying to move some files to a relative subfolder recursivly.
I want to use the get-location command and combine it with a string ("\foo_1"), while using it as a parameter.
So get-location should result in "D:\foo_2" so that the result is "D:\foo_2\foo_1"
All while being a parameter of a separate command:
Get-ChildItem -Path ".\*.wav" -Recurse | Move-Item -Destination (get-location + "string")
I know i could just use variables, but i really want to understand this (if there is an answer). Thanks in advance =)